class PixiClient::Requests::GetChangedItemStock

Attributes

location_id[RW]
offset[RW]
row_count[RW]
since[RW]

Public Class Methods

new(opts) click to toggle source
# 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

Public Instance Methods

api_method() click to toggle source
# File lib/pixi_client/requests/get_changed_item_stock.rb, line 14
def api_method
  :pixi_get_changed_item_stock
end
message() click to toggle source
# File lib/pixi_client/requests/get_changed_item_stock.rb, line 18
def message
  { '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