Class: Phoneburner::Content
- Inherits:
-
Model
- Object
- Model
- Phoneburner::Content
show all
- Defined in:
- lib/phoneburner/content.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, #to_json
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class Phoneburner::Model
Class Method Details
.json_type ⇒ Object
8
9
10
|
# File 'lib/phoneburner/content.rb', line 8
def self.json_type
"content"
end
|
.path ⇒ Object
4
5
6
|
# File 'lib/phoneburner/content.rb', line 4
def self.path
"/rest/1/content/"
end
|
.secondary_json_type(request) ⇒ Object
12
13
14
|
# File 'lib/phoneburner/content.rb', line 12
def self.secondary_json_type(request)
"emails"
end
|
Instance Method Details
#id ⇒ Object
16
17
18
|
# File 'lib/phoneburner/content.rb', line 16
def id
self.cm_content_id
end
|
#id=(i) ⇒ Object
20
21
22
|
# File 'lib/phoneburner/content.rb', line 20
def id=(i)
self.cm_content_id = i
end
|