Class: Phoneburner::Contact

Inherits:
Model
  • Object
show all
Defined in:
lib/phoneburner/contact.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#<=>, #attribute_names, #attributes, #delete, extract_inner_results, extract_results, #initialize, #is_new?, #method_missing, #path, #refresh, #save, secondary_json_type, #to_json

Constructor Details

This class inherits a constructor from Phoneburner::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Phoneburner::Model

Class Method Details

.json_typeObject



8
9
10
# File 'lib/phoneburner/contact.rb', line 8

def self.json_type
  "contacts"
end

.pathObject



4
5
6
# File 'lib/phoneburner/contact.rb', line 4

def self.path
  "/rest/1/contacts/"
end

Instance Method Details

#idObject



12
13
14
# File 'lib/phoneburner/contact.rb', line 12

def id
  self.contact_id
end

#id=(i) ⇒ Object



16
17
18
# File 'lib/phoneburner/contact.rb', line 16

def id=(i)
  self.contact_id = i
end