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