Class: PixiClient::Requests::GetOrderComments

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

Returns a new instance of GetOrderComments.



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

def initialize(pixi_order_number)
  self.pixi_order_number = pixi_order_number
end

Instance Attribute Details

#pixi_order_numberObject

Returns the value of attribute pixi_order_number.



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

def pixi_order_number
  @pixi_order_number
end

Instance Method Details

#api_methodObject



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

def api_method
  :pixi_get_order_comments
end

#messageObject



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

def message
  { 'OrderNr' => pixi_order_number }
end