Class: Rafflesia::JobOperationStatusCount
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::JobOperationStatusCount
- Defined in:
- lib/rafflesia/jobs/job_operation_status_count.rb
Constant Summary collapse
- HASH_ATTRS =
{ count: :count, operation: :operation, status: :status }.freeze
Instance Attribute Summary collapse
-
#count ⇒ Object
Returns the value of attribute count.
-
#operation ⇒ Object
Returns the value of attribute operation.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(json) ⇒ JobOperationStatusCount
constructor
A new instance of JobOperationStatusCount.
Constructor Details
#initialize(json) ⇒ JobOperationStatusCount
Returns a new instance of JobOperationStatusCount.
19 20 21 22 23 24 25 |
# File 'lib/rafflesia/jobs/job_operation_status_count.rb', line 19 def initialize(json) super() hash = self.class.normalize(json) @count = hash[:count] @operation = hash[:operation] @status = hash[:status] end |
Instance Attribute Details
#count ⇒ Object
Returns the value of attribute count.
14 15 16 |
# File 'lib/rafflesia/jobs/job_operation_status_count.rb', line 14 def count @count end |
#operation ⇒ Object
Returns the value of attribute operation.
14 15 16 |
# File 'lib/rafflesia/jobs/job_operation_status_count.rb', line 14 def operation @operation end |
#status ⇒ Object
Returns the value of attribute status.
14 15 16 |
# File 'lib/rafflesia/jobs/job_operation_status_count.rb', line 14 def status @status end |