Class: Belpost::Models::BatchItem
- Inherits:
-
Object
- Object
- Belpost::Models::BatchItem
- Defined in:
- lib/belpost/models/batch_item.rb
Overview
Model class for batch item
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(data) ⇒ BatchItem
constructor
A new instance of BatchItem.
- #to_h ⇒ Object
- #to_json(*_args) ⇒ Object
Constructor Details
#initialize(data) ⇒ BatchItem
Returns a new instance of BatchItem.
9 10 11 |
# File 'lib/belpost/models/batch_item.rb', line 9 def initialize(data) @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
7 8 9 |
# File 'lib/belpost/models/batch_item.rb', line 7 def data @data end |
Instance Method Details
#to_h ⇒ Object
13 14 15 |
# File 'lib/belpost/models/batch_item.rb', line 13 def to_h data end |
#to_json(*_args) ⇒ Object
17 18 19 |
# File 'lib/belpost/models/batch_item.rb', line 17 def to_json(*_args) data.to_json end |