Class: Point::ZoneRecord
- Inherits:
-
Base
- Object
- Base
- Point::ZoneRecord
show all
- Defined in:
- lib/point/zone_record.rb
Constant Summary
collapse
- RECORD_TYPES =
["A", "CNAME", "MX", "TXT", "SRV", "AAAA", 'SSHFP', 'PTR']
Instance Attribute Summary
Attributes inherited from Base
#attributes, #errors, #id
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
#create, #destroy, find, find_all, find_single, #method_missing, #new_record?, #post, post, #save, #update
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class Point::Base
Class Method Details
.class_name ⇒ Object
15
16
17
|
# File 'lib/point/zone_record.rb', line 15
def class_name
"zone_record"
end
|
.collection_path(params = {}) ⇒ Object
7
8
9
|
# File 'lib/point/zone_record.rb', line 7
def collection_path(params = {})
"zones/#{params[:zone].id}/records"
end
|
.member_path(id, params = {}) ⇒ Object
11
12
13
|
# File 'lib/point/zone_record.rb', line 11
def member_path(id, params = {})
"zones/#{params[:zone].id}/records/#{id}"
end
|
Instance Method Details
#default_params ⇒ Object
20
21
22
|
# File 'lib/point/zone_record.rb', line 20
def default_params
{:zone => self.zone}
end
|