Class: SuperFormatter::Hct::Head
- Inherits:
-
Struct
- Object
- Struct
- SuperFormatter::Hct::Head
- Defined in:
- lib/super_formatter/hct/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/hct/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/hct/head.rb', line 4 def indexes @indexes ||= { global_order_id: data.index("訂單號碼") || data.index("清單編號"), mobile: data.index("收貨人電話") || data.index("收貨人電話1"), recipient: data.index("收貨人") || data.index("收貨人名稱"), tracking_code: data.index("查貨號碼") || data.index("十碼貨號") } end |