Class: Rafflesia::DeploymentRef
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::DeploymentRef
- Defined in:
- lib/rafflesia/foundry/deployment_ref.rb
Constant Summary collapse
- HASH_ATTRS =
{ build_id: :build_id, endpoint: :endpoint, id: :id, method: :method, object: :object, provider: :provider, region: :region, runtime_digest: :runtime_digest, status: :status }.freeze
Instance Attribute Summary collapse
-
#build_id ⇒ Object
Returns the value of attribute build_id.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#id ⇒ Object
Returns the value of attribute id.
-
#method ⇒ Object
Returns the value of attribute method.
-
#object ⇒ Object
Returns the value of attribute object.
-
#provider ⇒ Object
Returns the value of attribute provider.
-
#region ⇒ Object
Returns the value of attribute region.
-
#runtime_digest ⇒ Object
Returns the value of attribute runtime_digest.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(json) ⇒ DeploymentRef
constructor
A new instance of DeploymentRef.
Constructor Details
#initialize(json) ⇒ DeploymentRef
Returns a new instance of DeploymentRef.
31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/rafflesia/foundry/deployment_ref.rb', line 31 def initialize(json) super() hash = self.class.normalize(json) @build_id = hash[:build_id] @endpoint = hash[:endpoint] @id = hash[:id] @method = hash[:method] @object = hash[:object] @provider = hash[:provider] @region = hash[:region] @runtime_digest = hash[:runtime_digest] @status = hash[:status] end |
Instance Attribute Details
#build_id ⇒ Object
Returns the value of attribute build_id.
20 21 22 |
# File 'lib/rafflesia/foundry/deployment_ref.rb', line 20 def build_id @build_id end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
20 21 22 |
# File 'lib/rafflesia/foundry/deployment_ref.rb', line 20 def endpoint @endpoint end |
#id ⇒ Object
Returns the value of attribute id.
20 21 22 |
# File 'lib/rafflesia/foundry/deployment_ref.rb', line 20 def id @id end |
#method ⇒ Object
Returns the value of attribute method.
20 21 22 |
# File 'lib/rafflesia/foundry/deployment_ref.rb', line 20 def method @method end |
#object ⇒ Object
Returns the value of attribute object.
20 21 22 |
# File 'lib/rafflesia/foundry/deployment_ref.rb', line 20 def object @object end |
#provider ⇒ Object
Returns the value of attribute provider.
20 21 22 |
# File 'lib/rafflesia/foundry/deployment_ref.rb', line 20 def provider @provider end |
#region ⇒ Object
Returns the value of attribute region.
20 21 22 |
# File 'lib/rafflesia/foundry/deployment_ref.rb', line 20 def region @region end |
#runtime_digest ⇒ Object
Returns the value of attribute runtime_digest.
20 21 22 |
# File 'lib/rafflesia/foundry/deployment_ref.rb', line 20 def runtime_digest @runtime_digest end |
#status ⇒ Object
Returns the value of attribute status.
20 21 22 |
# File 'lib/rafflesia/foundry/deployment_ref.rb', line 20 def status @status end |