Class: PixiClient::Requests::GetStockByBin

Inherits:
Base
  • Object
show all
Defined in:
lib/pixi_client/requests/get_stock_by_bin.rb

Constant Summary

Constants inherited from Base

Base::FIVE_MINUTES, Base::TIME_STRING_FORMAT

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#call

Constructor Details

#initialize(loc_id) ⇒ GetStockByBin

Returns a new instance of GetStockByBin.



6
7
8
# File 'lib/pixi_client/requests/get_stock_by_bin.rb', line 6

def initialize(loc_id)
  self.loc_id = loc_id
end

Instance Attribute Details

#loc_idObject

Returns the value of attribute loc_id.



4
5
6
# File 'lib/pixi_client/requests/get_stock_by_bin.rb', line 4

def loc_id
  @loc_id
end

Instance Method Details

#api_methodObject



10
11
12
# File 'lib/pixi_client/requests/get_stock_by_bin.rb', line 10

def api_method
  :pixi_get_stock_bins
end

#messageObject



14
15
16
# File 'lib/pixi_client/requests/get_stock_by_bin.rb', line 14

def message
  { 'LocID' => loc_id }
end