Class: Rafflesia::RolloutGroup
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::RolloutGroup
- Defined in:
- lib/rafflesia/rollout_groups/rollout_group.rb
Constant Summary collapse
- HASH_ATTRS =
{ canceled_count: :canceled_count, completed_count: :completed_count, created_at: :created_at, environment_release_id: :environment_release_id, environment_task_id: :environment_task_id, episode_count: :episode_count, episode_ids: :episode_ids, failed_count: :failed_count, id: :id, is_livemode: :is_livemode, metadata: :metadata, object: :object, organization_id: :organization_id, runtime_profile_id: :runtime_profile_id, status: :status, updated_at: :updated_at }.freeze
Instance Attribute Summary collapse
-
#canceled_count ⇒ Object
Returns the value of attribute canceled_count.
-
#completed_count ⇒ Object
Returns the value of attribute completed_count.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#environment_release_id ⇒ Object
Returns the value of attribute environment_release_id.
-
#environment_task_id ⇒ Object
Returns the value of attribute environment_task_id.
-
#episode_count ⇒ Object
Returns the value of attribute episode_count.
-
#episode_ids ⇒ Object
Returns the value of attribute episode_ids.
-
#failed_count ⇒ Object
Returns the value of attribute failed_count.
-
#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.
-
#object ⇒ Object
Returns the value of attribute object.
-
#organization_id ⇒ Object
Returns the value of attribute organization_id.
-
#runtime_profile_id ⇒ Object
Returns the value of attribute runtime_profile_id.
-
#status ⇒ Object
Returns the value of attribute status.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(json) ⇒ RolloutGroup
constructor
A new instance of RolloutGroup.
Constructor Details
#initialize(json) ⇒ RolloutGroup
Returns a new instance of RolloutGroup.
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/rafflesia/rollout_groups/rollout_group.rb', line 45 def initialize(json) super() hash = self.class.normalize(json) @canceled_count = hash[:canceled_count] @completed_count = hash[:completed_count] @created_at = hash[:created_at] @environment_release_id = hash[:environment_release_id] @environment_task_id = hash[:environment_task_id] @episode_count = hash[:episode_count] @episode_ids = (hash[:episode_ids] || []) @failed_count = hash[:failed_count] @id = hash[:id] @is_livemode = hash[:is_livemode] @metadata = hash[:metadata] || {} @object = hash[:object] @organization_id = hash[:organization_id] @runtime_profile_id = hash[:runtime_profile_id] @status = hash[:status] @updated_at = hash[:updated_at] end |
Instance Attribute Details
#canceled_count ⇒ Object
Returns the value of attribute canceled_count.
27 28 29 |
# File 'lib/rafflesia/rollout_groups/rollout_group.rb', line 27 def canceled_count @canceled_count end |
#completed_count ⇒ Object
Returns the value of attribute completed_count.
27 28 29 |
# File 'lib/rafflesia/rollout_groups/rollout_group.rb', line 27 def completed_count @completed_count end |
#created_at ⇒ Object
Returns the value of attribute created_at.
27 28 29 |
# File 'lib/rafflesia/rollout_groups/rollout_group.rb', line 27 def created_at @created_at end |
#environment_release_id ⇒ Object
Returns the value of attribute environment_release_id.
27 28 29 |
# File 'lib/rafflesia/rollout_groups/rollout_group.rb', line 27 def environment_release_id @environment_release_id end |
#environment_task_id ⇒ Object
Returns the value of attribute environment_task_id.
27 28 29 |
# File 'lib/rafflesia/rollout_groups/rollout_group.rb', line 27 def environment_task_id @environment_task_id end |
#episode_count ⇒ Object
Returns the value of attribute episode_count.
27 28 29 |
# File 'lib/rafflesia/rollout_groups/rollout_group.rb', line 27 def episode_count @episode_count end |
#episode_ids ⇒ Object
Returns the value of attribute episode_ids.
27 28 29 |
# File 'lib/rafflesia/rollout_groups/rollout_group.rb', line 27 def episode_ids @episode_ids end |
#failed_count ⇒ Object
Returns the value of attribute failed_count.
27 28 29 |
# File 'lib/rafflesia/rollout_groups/rollout_group.rb', line 27 def failed_count @failed_count end |
#id ⇒ Object
Returns the value of attribute id.
27 28 29 |
# File 'lib/rafflesia/rollout_groups/rollout_group.rb', line 27 def id @id end |
#is_livemode ⇒ Object
Returns the value of attribute is_livemode.
27 28 29 |
# File 'lib/rafflesia/rollout_groups/rollout_group.rb', line 27 def is_livemode @is_livemode end |
#metadata ⇒ Object
Returns the value of attribute metadata.
27 28 29 |
# File 'lib/rafflesia/rollout_groups/rollout_group.rb', line 27 def @metadata end |
#object ⇒ Object
Returns the value of attribute object.
27 28 29 |
# File 'lib/rafflesia/rollout_groups/rollout_group.rb', line 27 def object @object end |
#organization_id ⇒ Object
Returns the value of attribute organization_id.
27 28 29 |
# File 'lib/rafflesia/rollout_groups/rollout_group.rb', line 27 def organization_id @organization_id end |
#runtime_profile_id ⇒ Object
Returns the value of attribute runtime_profile_id.
27 28 29 |
# File 'lib/rafflesia/rollout_groups/rollout_group.rb', line 27 def runtime_profile_id @runtime_profile_id end |
#status ⇒ Object
Returns the value of attribute status.
27 28 29 |
# File 'lib/rafflesia/rollout_groups/rollout_group.rb', line 27 def status @status end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
27 28 29 |
# File 'lib/rafflesia/rollout_groups/rollout_group.rb', line 27 def updated_at @updated_at end |