Class: QuickbaseRecord::Field

Inherits:
Object
  • Object
show all
Defined in:
lib/quickbase_record/field_mapping.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Field



22
23
24
# File 'lib/quickbase_record/field_mapping.rb', line 22

def initialize(value)
  @value = format_value(value)
end

Instance Attribute Details

#valueObject

Returns the value of attribute value.



20
21
22
# File 'lib/quickbase_record/field_mapping.rb', line 20

def value
  @value
end

Instance Method Details

#format_value(value) ⇒ Object



26
27
28
29
30
# File 'lib/quickbase_record/field_mapping.rb', line 26

def format_value(value)
  return value if value.is_a? Integer


end