Method: Fog::DNS::DNSimple::Records#get
- Defined in:
- lib/fog/dns/models/dnsimple/records.rb
#get(record_id) ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/fog/dns/models/dnsimple/records.rb', line 21 def get(record_id) requires :zone data = connection.get_record(zone.id, record_id).body["record"] new(data) rescue Excon::Errors::NotFound nil end |