Class: Rafflesia::ReleaseLifecycle

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/foundry/release_lifecycle.rb

Constant Summary collapse

HASH_ATTRS =
{
  deprecated_at: :deprecated_at,
  published_at: :published_at,
  status: :status
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ ReleaseLifecycle

Returns a new instance of ReleaseLifecycle.



19
20
21
22
23
24
25
# File 'lib/rafflesia/foundry/release_lifecycle.rb', line 19

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @deprecated_at = hash[:deprecated_at]
  @published_at = hash[:published_at]
  @status = hash[:status]
end

Instance Attribute Details

#deprecated_atObject

Returns the value of attribute deprecated_at.



14
15
16
# File 'lib/rafflesia/foundry/release_lifecycle.rb', line 14

def deprecated_at
  @deprecated_at
end

#published_atObject

Returns the value of attribute published_at.



14
15
16
# File 'lib/rafflesia/foundry/release_lifecycle.rb', line 14

def published_at
  @published_at
end

#statusObject

Returns the value of attribute status.



14
15
16
# File 'lib/rafflesia/foundry/release_lifecycle.rb', line 14

def status
  @status
end