Class: Field

Inherits:
Object
  • Object
show all
Defined in:
lib/quickbase_record/field.rb,
lib/quickbase_record/fields/field.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fidObject

Returns the value of attribute fid.



2
3
4
# File 'lib/quickbase_record/field.rb', line 2

def fid
  @fid
end

#field_nameObject

Returns the value of attribute field_name.



2
3
4
# File 'lib/quickbase_record/field.rb', line 2

def field_name
  @field_name
end

#optionsObject

Returns the value of attribute options.



2
3
4
# File 'lib/quickbase_record/field.rb', line 2

def options
  @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