Class: PixiClient::Requests::GetOrderLines
- Defined in:
- lib/pixi_client/requests/get_order_lines.rb
Constant Summary
Constants inherited from Base
Base::FIVE_MINUTES, Base::TIME_STRING_FORMAT
Instance Attribute Summary collapse
-
#pixi_order_number ⇒ Object
Returns the value of attribute pixi_order_number.
Instance Method Summary collapse
- #api_method ⇒ Object
-
#initialize(options = {}) ⇒ GetOrderLines
constructor
Pixi* documentation says that the pixi order number is mandatory for this requests.
- #message ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(options = {}) ⇒ GetOrderLines
Pixi* documentation says that the pixi order number is mandatory for this requests
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/pixi_client/requests/get_order_lines.rb', line 8 def initialize( = {}) if [:pixi_order_number] @pixi_order_number = [:pixi_order_number] elsif [:message] @message = [:message] else fail('Parameters must include either pixi_order_number or message-Hash') end end |
Instance Attribute Details
#pixi_order_number ⇒ Object
Returns the value of attribute pixi_order_number.
4 5 6 |
# File 'lib/pixi_client/requests/get_order_lines.rb', line 4 def pixi_order_number @pixi_order_number end |
Instance Method Details
#api_method ⇒ Object
19 20 21 |
# File 'lib/pixi_client/requests/get_order_lines.rb', line 19 def api_method :pixi_get_orderline end |
#message ⇒ Object
23 24 25 26 |
# File 'lib/pixi_client/requests/get_order_lines.rb', line 23 def return @message if @message { 'OrderNR' => pixi_order_number } end |