Class: PixiClient::Requests::GetChangedItemStock
- Defined in:
- lib/pixi_client/requests/get_changed_item_stock.rb
Constant Summary
Constants inherited from Base
Base::FIVE_MINUTES, Base::TIME_STRING_FORMAT
Instance Attribute Summary collapse
-
#location_id ⇒ Object
Returns the value of attribute location_id.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#row_count ⇒ Object
Returns the value of attribute row_count.
-
#since ⇒ Object
Returns the value of attribute since.
Instance Method Summary collapse
- #api_method ⇒ Object
-
#initialize(opts) ⇒ GetChangedItemStock
constructor
A new instance of GetChangedItemStock.
- #message ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(opts) ⇒ GetChangedItemStock
Returns a new instance of GetChangedItemStock.
7 8 9 10 11 12 |
# File 'lib/pixi_client/requests/get_changed_item_stock.rb', line 7 def initialize(opts) self.since = opts[:since] self.row_count = opts[:row_count] self.offset = opts[:offset] self.location_id = opts[:location_id] end |
Instance Attribute Details
#location_id ⇒ Object
Returns the value of attribute location_id.
5 6 7 |
# File 'lib/pixi_client/requests/get_changed_item_stock.rb', line 5 def location_id @location_id end |
#offset ⇒ Object
Returns the value of attribute offset.
5 6 7 |
# File 'lib/pixi_client/requests/get_changed_item_stock.rb', line 5 def offset @offset end |
#row_count ⇒ Object
Returns the value of attribute row_count.
5 6 7 |
# File 'lib/pixi_client/requests/get_changed_item_stock.rb', line 5 def row_count @row_count end |
#since ⇒ Object
Returns the value of attribute since.
5 6 7 |
# File 'lib/pixi_client/requests/get_changed_item_stock.rb', line 5 def since @since end |
Instance Method Details
#api_method ⇒ Object
14 15 16 |
# File 'lib/pixi_client/requests/get_changed_item_stock.rb', line 14 def api_method :pixi_get_changed_item_stock end |
#message ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/pixi_client/requests/get_changed_item_stock.rb', line 18 def { 'Since' => since.strftime(TIME_STRING_FORMAT) }.tap do |opts| opts['RowCount'] = row_count unless row_count.nil? opts['LocID'] = location_id unless location_id.nil? opts['Start'] = offset unless offset.nil? end end |