Class: Workarea::FlowIo::BogusClient::Orders::OrderResponse
- Inherits:
-
Object
- Object
- Workarea::FlowIo::BogusClient::Orders::OrderResponse
- Defined in:
- lib/workarea/flow_io/bogus_client/orders.rb
Instance Attribute Summary collapse
-
#number ⇒ Object
readonly
Returns the value of attribute number.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#order_put_form ⇒ Object
readonly
Returns the value of attribute order_put_form.
Instance Method Summary collapse
- #flow_model ⇒ Object
-
#initialize(number, order_put_form, options) ⇒ OrderResponse
constructor
A new instance of OrderResponse.
Constructor Details
#initialize(number, order_put_form, options) ⇒ OrderResponse
Returns a new instance of OrderResponse.
22 23 24 25 26 |
# File 'lib/workarea/flow_io/bogus_client/orders.rb', line 22 def initialize(number, order_put_form, ) @number = number @order_put_form = order_put_form @options = end |
Instance Attribute Details
#number ⇒ Object (readonly)
Returns the value of attribute number.
20 21 22 |
# File 'lib/workarea/flow_io/bogus_client/orders.rb', line 20 def number @number end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
20 21 22 |
# File 'lib/workarea/flow_io/bogus_client/orders.rb', line 20 def @options end |
#order_put_form ⇒ Object (readonly)
Returns the value of attribute order_put_form.
20 21 22 |
# File 'lib/workarea/flow_io/bogus_client/orders.rb', line 20 def order_put_form @order_put_form end |
Instance Method Details
#flow_model ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/workarea/flow_io/bogus_client/orders.rb', line 28 def flow_model unless ["canada", "europe"].include? experience_key raise "No bogus response for #{experience_key}" end order end |