Class: FruitToLime::DealStatus
- Inherits:
-
Object
- Object
- FruitToLime::DealStatus
- Includes:
- SerializeHelper
- Defined in:
- lib/fruit_to_lime/model/deal_status.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#id ⇒ Object
Returns the value of attribute id.
-
#label ⇒ Object
Returns the value of attribute label.
-
#note ⇒ Object
Returns the value of attribute note.
Instance Method Summary collapse
Methods included from SerializeHelper
#get_import_rows, #serialize, #serialize_to_file
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date.
5 6 7 |
# File 'lib/fruit_to_lime/model/deal_status.rb', line 5 def date @date end |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/fruit_to_lime/model/deal_status.rb', line 5 def id @id end |
#label ⇒ Object
Returns the value of attribute label.
5 6 7 |
# File 'lib/fruit_to_lime/model/deal_status.rb', line 5 def label @label end |
#note ⇒ Object
Returns the value of attribute note.
5 6 7 |
# File 'lib/fruit_to_lime/model/deal_status.rb', line 5 def note @note end |
Instance Method Details
#serialize_variables ⇒ Object
7 8 9 10 |
# File 'lib/fruit_to_lime/model/deal_status.rb', line 7 def serialize_variables [ :id, :label, :note ].map{ |p| { :id => p, :type => :string } } + [ :date ].map { |p| { :id => p, :type => :date } } end |