Class: FruitToLime::DealStatus

Inherits:
Object
  • Object
show all
Includes:
SerializeHelper
Defined in:
lib/fruit_to_lime/model/deal_status.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from SerializeHelper

#get_import_rows, #serialize, #serialize_to_file

Instance Attribute Details

#dateObject

Returns the value of attribute date.



5
6
7
# File 'lib/fruit_to_lime/model/deal_status.rb', line 5

def date
  @date
end

#idObject

Returns the value of attribute id.



5
6
7
# File 'lib/fruit_to_lime/model/deal_status.rb', line 5

def id
  @id
end

#labelObject

Returns the value of attribute label.



5
6
7
# File 'lib/fruit_to_lime/model/deal_status.rb', line 5

def label
  @label
end

#noteObject

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_variablesObject



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