Class: Rafflesia::Environment
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::Environment
- Defined in:
- lib/rafflesia/environments/environment.rb
Constant Summary collapse
- HASH_ATTRS =
{ active_release_id: :active_release_id, created_at: :created_at, description: :description, id: :id, is_livemode: :is_livemode, metadata: :metadata, name: :name, object: :object }.freeze
Instance Attribute Summary collapse
-
#active_release_id ⇒ Object
Returns the value of attribute active_release_id.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_livemode ⇒ Object
Returns the value of attribute is_livemode.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#name ⇒ Object
Returns the value of attribute name.
-
#object ⇒ Object
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(json) ⇒ Environment
constructor
A new instance of Environment.
Constructor Details
#initialize(json) ⇒ Environment
Returns a new instance of Environment.
29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/rafflesia/environments/environment.rb', line 29 def initialize(json) super() hash = self.class.normalize(json) @active_release_id = hash[:active_release_id] @created_at = hash[:created_at] @description = hash[:description] @id = hash[:id] @is_livemode = hash[:is_livemode] @metadata = hash[:metadata] || {} @name = hash[:name] @object = hash[:object] end |
Instance Attribute Details
#active_release_id ⇒ Object
Returns the value of attribute active_release_id.
19 20 21 |
# File 'lib/rafflesia/environments/environment.rb', line 19 def active_release_id @active_release_id end |
#created_at ⇒ Object
Returns the value of attribute created_at.
19 20 21 |
# File 'lib/rafflesia/environments/environment.rb', line 19 def created_at @created_at end |
#description ⇒ Object
Returns the value of attribute description.
19 20 21 |
# File 'lib/rafflesia/environments/environment.rb', line 19 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
19 20 21 |
# File 'lib/rafflesia/environments/environment.rb', line 19 def id @id end |
#is_livemode ⇒ Object
Returns the value of attribute is_livemode.
19 20 21 |
# File 'lib/rafflesia/environments/environment.rb', line 19 def is_livemode @is_livemode end |
#metadata ⇒ Object
Returns the value of attribute metadata.
19 20 21 |
# File 'lib/rafflesia/environments/environment.rb', line 19 def @metadata end |
#name ⇒ Object
Returns the value of attribute name.
19 20 21 |
# File 'lib/rafflesia/environments/environment.rb', line 19 def name @name end |
#object ⇒ Object
Returns the value of attribute object.
19 20 21 |
# File 'lib/rafflesia/environments/environment.rb', line 19 def object @object end |