Class: SuperFormatter::Ecan::Head
- Inherits:
-
Struct
- Object
- Struct
- SuperFormatter::Ecan::Head
- Defined in:
- lib/super_formatter/ecan/head.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
Instance Method Summary collapse
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
3 4 5 |
# File 'lib/super_formatter/ecan/head.rb', line 3 def data @data end |
Instance Method Details
#indexes ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/super_formatter/ecan/head.rb', line 4 def indexes @indexes ||= { global_order_id: data.index('客戶單號'), recipient: data.index('收件人'), tracking_code: data.index('宅配單號') } end |