Class: QuickbaseRecord::Field
- Inherits:
-
Object
- Object
- QuickbaseRecord::Field
- Defined in:
- lib/quickbase_record/field_mapping.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #format_value(value) ⇒ Object
-
#initialize(value) ⇒ Field
constructor
A new instance of Field.
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
#value ⇒ Object
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 |