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