Class: Workarea::FlowIo::BogusClient::Orders::OrderResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/workarea/flow_io/bogus_client/orders.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options)
  @number = number
  @order_put_form = order_put_form
  @options = options
end

Instance Attribute Details

#numberObject (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

#optionsObject (readonly)

Returns the value of attribute options.



20
21
22
# File 'lib/workarea/flow_io/bogus_client/orders.rb', line 20

def options
  @options
end

#order_put_formObject (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_modelObject



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