Class: PixiClient::Requests::GetOrderNrExternalByBoxNr

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

Returns a new instance of GetOrderNrExternalByBoxNr.



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

def initialize(opts)
  self.box_nr = opts[:box_nr]
end

Instance Attribute Details

#box_nrObject

Returns the value of attribute box_nr.



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

def box_nr
  @box_nr
end

Instance Method Details

#api_methodObject



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

def api_method
  :pixi_get_order_nr_external_by_box_nr
end

#messageObject



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

def message
  { 'BoxNr' => box_nr }
end