Class: RHC::Rest::Mock::MockRestDeployment
- Inherits:
-
Deployment
- Object
- Base
- Deployment
- RHC::Rest::Mock::MockRestDeployment
- Defined in:
- lib/rhc/rest/mock.rb
Instance Method Summary collapse
- #activations ⇒ Object
-
#initialize(client, id, ref, sha1, artifact_url, hot_deploy, created_at, force_clean_build, activations) ⇒ MockRestDeployment
constructor
A new instance of MockRestDeployment.
Methods inherited from Deployment
Methods inherited from Base
#add_message, #has_param?, #link_href, #links, #rest_method, #supports?
Methods included from AttributesClass
Methods included from Attributes
#attribute, #attributes, #attributes=, #clear_attribute
Constructor Details
#initialize(client, id, ref, sha1, artifact_url, hot_deploy, created_at, force_clean_build, activations) ⇒ MockRestDeployment
Returns a new instance of MockRestDeployment.
999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 |
# File 'lib/rhc/rest/mock.rb', line 999 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 |
Instance Method Details
#activations ⇒ Object
1011 1012 1013 |
# File 'lib/rhc/rest/mock.rb', line 1011 def activations @activations.map{|activation| MockRestActivation.new(client, RHC::Helpers.datetime_rfc3339(activation))}.sort end |