Class: SuperFormatter::Tcat::Head
- Inherits:
-
Struct
- Object
- Struct
- SuperFormatter::Tcat::Head
- Defined in:
- lib/super_formatter/tcat/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/tcat/head.rb', line 3 def data @data end |
Instance Method Details
#indexes ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/super_formatter/tcat/head.rb', line 4 def indexes @indexes ||= { global_order_id: data.index('訂單編號'), mobile: data.index('手機(收)'), recipient: data.index('收件人'), tracking_code: data.index('託運單號') } end |