Class: FTF::Mappings::Product
- Inherits:
-
Object
- Object
- FTF::Mappings::Product
- Defined in:
- lib/ftf/mappings/product.rb
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#holders ⇒ Object
readonly
Returns the value of attribute holders.
Instance Method Summary collapse
- #action ⇒ Object
- #canceled_at ⇒ Object
- #created_at ⇒ Object
- #id ⇒ Object
- #id_type ⇒ Object
-
#initialize(data, file) ⇒ Product
constructor
A new instance of Product.
- #lease_period ⇒ Object
- #lease_type ⇒ Object
- #render(index) ⇒ Object
- #transfered_at ⇒ Object
- #transfered_entity_id ⇒ Object
- #type ⇒ Object
Constructor Details
Instance Attribute Details
#file ⇒ Object (readonly)
Returns the value of attribute file.
6 7 8 |
# File 'lib/ftf/mappings/product.rb', line 6 def file @file end |
#holders ⇒ Object (readonly)
Returns the value of attribute holders.
6 7 8 |
# File 'lib/ftf/mappings/product.rb', line 6 def holders @holders end |
Instance Method Details
#action ⇒ Object
18 19 20 |
# File 'lib/ftf/mappings/product.rb', line 18 def action @data[:action] end |
#canceled_at ⇒ Object
38 39 40 |
# File 'lib/ftf/mappings/product.rb', line 38 def canceled_at @data[:canceled_at] end |
#created_at ⇒ Object
34 35 36 |
# File 'lib/ftf/mappings/product.rb', line 34 def created_at @data[:created_at] end |
#id ⇒ Object
30 31 32 |
# File 'lib/ftf/mappings/product.rb', line 30 def id @data[:id] end |
#id_type ⇒ Object
26 27 28 |
# File 'lib/ftf/mappings/product.rb', line 26 def id_type @data[:id_type] end |
#lease_period ⇒ Object
54 55 56 |
# File 'lib/ftf/mappings/product.rb', line 54 def lease_period @data[:lease_period] end |
#lease_type ⇒ Object
50 51 52 |
# File 'lib/ftf/mappings/product.rb', line 50 def lease_type @data[:lease_type] end |
#render(index) ⇒ Object
14 15 16 |
# File 'lib/ftf/mappings/product.rb', line 14 def render(index) Records::Product.new(index, self).render end |
#transfered_at ⇒ Object
42 43 44 |
# File 'lib/ftf/mappings/product.rb', line 42 def transfered_at @data[:transfered_at] end |
#transfered_entity_id ⇒ Object
46 47 48 |
# File 'lib/ftf/mappings/product.rb', line 46 def transfered_entity_id @data[:transfered_entity_id] end |
#type ⇒ Object
22 23 24 |
# File 'lib/ftf/mappings/product.rb', line 22 def type @data[:type] end |