Class: Field
- Inherits:
-
Object
- Object
- Field
- Defined in:
- lib/quickbase_record/field.rb,
lib/quickbase_record/fields/field.rb
Direct Known Subclasses
BooleanField, DateField, FileAttachmentField, NumberField, StringField
Instance Attribute Summary collapse
-
#fid ⇒ Object
Returns the value of attribute fid.
-
#field_name ⇒ Object
Returns the value of attribute field_name.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
- #convert(value) ⇒ Object
-
#initialize(args = {}) ⇒ Field
constructor
A new instance of Field.
Constructor Details
#initialize(args = {}) ⇒ Field
Returns a new instance of Field.
4 5 6 7 8 |
# File 'lib/quickbase_record/field.rb', line 4 def initialize(args={}) @field_name = args[:field_name] @fid = args[:fid] @options = args[:options] end |
Instance Attribute Details
#fid ⇒ Object
Returns the value of attribute fid.
2 3 4 |
# File 'lib/quickbase_record/field.rb', line 2 def fid @fid end |
#field_name ⇒ Object
Returns the value of attribute field_name.
2 3 4 |
# File 'lib/quickbase_record/field.rb', line 2 def field_name @field_name end |
#options ⇒ Object
Returns the value of attribute options.
2 3 4 |
# File 'lib/quickbase_record/field.rb', line 2 def @options end |
Instance Method Details
#convert(value) ⇒ Object
10 11 12 |
# File 'lib/quickbase_record/fields/field.rb', line 10 def convert(value) Raise "#{self.class} must implement #convert to be a true subclass of Field" end |