Class: Insightly::CustomField

Inherits:
ReadOnly show all
Defined in:
lib/insightly/custom_field.rb

Instance Method Summary collapse

Methods inherited from ReadOnly

#==, build, #build, #config, #get_collection, #process, #remote_data

Methods inherited from Base

#==, all, api_field, build, #build, #config, custom_fields, #get_collection, #load, #process, #reload, #remote_data, #to_json, #url_base

Constructor Details

#initialize(id = nil) ⇒ CustomField

Returns a new instance of CustomField.



12
13
14
15
# File 'lib/insightly/custom_field.rb', line 12

def initialize(id = nil)
  @data = {"CUSTOM_FIELD_OPTIONS" => []}
  load(id) if id
end

Instance Method Details

#remote_idObject



16
17
18
# File 'lib/insightly/custom_field.rb', line 16

def remote_id
  self.custom_field_id
end