Class: PixiClient::Requests::GetOrderHeader

Inherits:
Base
  • Object
show all
Defined in:
lib/pixi_client/requests/get_order_header.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(order_id) ⇒ GetOrderHeader

Returns a new instance of GetOrderHeader.



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

def initialize(order_id)
  self.order_id = order_id
end

Instance Attribute Details

#order_idObject

Returns the value of attribute order_id.



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

def order_id
  @order_id
end

Instance Method Details

#api_methodObject



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

def api_method
  :pixi_get_order_header
end

#messageObject



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

def message
  { 'OrderNrExternal' => order_id }
end