Class: PixiClient::Requests::AddCommentToOrder

Inherits:
Base
  • Object
show all
Defined in:
lib/pixi_client/requests/add_comment_to_order.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_nr, comment) ⇒ AddCommentToOrder

Returns a new instance of AddCommentToOrder.



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

def initialize(order_nr, comment)
  self.order_nr = order_nr
  self.comment = comment
end

Instance Attribute Details

#commentObject

Returns the value of attribute comment.



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

def comment
  @comment
end

#order_nrObject

Returns the value of attribute order_nr.



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

def order_nr
  @order_nr
end

Instance Method Details

#api_methodObject



11
12
13
# File 'lib/pixi_client/requests/add_comment_to_order.rb', line 11

def api_method
  :pixi_add_order_comment
end

#messageObject



15
16
17
# File 'lib/pixi_client/requests/add_comment_to_order.rb', line 15

def message
  { 'OrderNr' => order_nr, 'Comment' => comment }
end