Class: PixiClient::Requests::GetStock
- Defined in:
- lib/pixi_client/requests/get_stock.rb
Constant Summary
Constants inherited from Base
Base::FIVE_MINUTES, Base::TIME_STRING_FORMAT
Instance Attribute Summary collapse
-
#exclude_zeros ⇒ Object
Returns the value of attribute exclude_zeros.
Instance Method Summary collapse
- #api_method ⇒ Object
-
#initialize(exclude_zeros = true) ⇒ GetStock
constructor
A new instance of GetStock.
- #message ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(exclude_zeros = true) ⇒ GetStock
Returns a new instance of GetStock.
6 7 8 |
# File 'lib/pixi_client/requests/get_stock.rb', line 6 def initialize(exclude_zeros = true) self.exclude_zeros = exclude_zeros end |
Instance Attribute Details
#exclude_zeros ⇒ Object
Returns the value of attribute exclude_zeros.
4 5 6 |
# File 'lib/pixi_client/requests/get_stock.rb', line 4 def exclude_zeros @exclude_zeros end |
Instance Method Details
#api_method ⇒ Object
10 11 12 |
# File 'lib/pixi_client/requests/get_stock.rb', line 10 def api_method :pixi_shop_link_get_items_stock end |
#message ⇒ Object
14 15 16 |
# File 'lib/pixi_client/requests/get_stock.rb', line 14 def { 'ExcludeZeros' => exclude_zeros } end |