Class: PixiClient::Requests::AddCommentToOrder
- 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
-
#comment ⇒ Object
Returns the value of attribute comment.
-
#order_nr ⇒ Object
Returns the value of attribute order_nr.
Instance Method Summary collapse
- #api_method ⇒ Object
-
#initialize(order_nr, comment) ⇒ AddCommentToOrder
constructor
A new instance of AddCommentToOrder.
- #message ⇒ Object
Methods inherited from Base
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
#comment ⇒ Object
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_nr ⇒ Object
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_method ⇒ Object
11 12 13 |
# File 'lib/pixi_client/requests/add_comment_to_order.rb', line 11 def api_method :pixi_add_order_comment end |
#message ⇒ Object
15 16 17 |
# File 'lib/pixi_client/requests/add_comment_to_order.rb', line 15 def { 'OrderNr' => order_nr, 'Comment' => comment } end |