Class: Rafflesia::DeploymentRef

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_idObject

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

#endpointObject

Returns the value of attribute endpoint.



20
21
22
# File 'lib/rafflesia/foundry/deployment_ref.rb', line 20

def endpoint
  @endpoint
end

#idObject

Returns the value of attribute id.



20
21
22
# File 'lib/rafflesia/foundry/deployment_ref.rb', line 20

def id
  @id
end

#methodObject

Returns the value of attribute method.



20
21
22
# File 'lib/rafflesia/foundry/deployment_ref.rb', line 20

def method
  @method
end

#objectObject

Returns the value of attribute object.



20
21
22
# File 'lib/rafflesia/foundry/deployment_ref.rb', line 20

def object
  @object
end

#providerObject

Returns the value of attribute provider.



20
21
22
# File 'lib/rafflesia/foundry/deployment_ref.rb', line 20

def provider
  @provider
end

#regionObject

Returns the value of attribute region.



20
21
22
# File 'lib/rafflesia/foundry/deployment_ref.rb', line 20

def region
  @region
end

#runtime_digestObject

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

#statusObject

Returns the value of attribute status.



20
21
22
# File 'lib/rafflesia/foundry/deployment_ref.rb', line 20

def status
  @status
end