class RHC::Rest::Mock::MockRestDeployment
Public Class Methods
new(client, id, ref, sha1, artifact_url, hot_deploy, created_at, force_clean_build, activations)
click to toggle source
Calls superclass method
RHC::Rest::Base::new
# File lib/rhc/rest/mock.rb, line 1131 def initialize(client, id, ref, sha1, artifact_url, hot_deploy, created_at, force_clean_build, activations) super({}, client) @id = id @ref = ref @sha1 = sha1 @artifact_url = artifact_url @hot_deploy = hot_deploy @created_at = created_at @force_clean_build = force_clean_build @activations = activations end
Public Instance Methods
activations()
click to toggle source
# File lib/rhc/rest/mock.rb, line 1143 def activations @activations.map{|activation| MockRestActivation.new(client, RHC::Helpers.datetime_rfc3339(activation))}.sort end