Class: Phoneburner::Voicemail

Inherits:
Model
  • Object
show all
Defined in:
lib/phoneburner/voicemail.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/voicemail.rb', line 8

def self.json_type
  "voicemails"
end

.pathObject



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

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

Instance Method Details

#idObject



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

def id
  self.recording_id
end

#id=(i) ⇒ Object



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

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