Class: RsrGroup::OrderFFL
Instance Attribute Summary collapse
-
#order_identifier ⇒ Object
readonly
Returns the value of attribute order_identifier.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ OrderFFL
constructor
A new instance of OrderFFL.
- #to_single_line ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(options = {}) ⇒ OrderFFL
Returns a new instance of OrderFFL.
6 7 8 9 10 11 |
# File 'lib/rsr_group/order_ffl.rb', line 6 def initialize( = {}) requires!(, :order_identifier, :licence_number, :name, :zip) = @order_identifier = [:order_identifier] end |
Instance Attribute Details
#order_identifier ⇒ Object (readonly)
Returns the value of attribute order_identifier.
4 5 6 |
# File 'lib/rsr_group/order_ffl.rb', line 4 def order_identifier @order_identifier end |
Instance Method Details
#to_single_line ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/rsr_group/order_ffl.rb', line 13 def to_single_line [ order_identifier, LINE_TYPES.key(:ffl_dealer), [:licence_number], [:name], [:zip], ].join(";") end |