mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[dnsimple|dns] small model fixes
This commit is contained in:
parent
f60ad1cc5f
commit
def3be4bb3
3 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ GEM
|
||||||
remote: http://rubygems.org/
|
remote: http://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
builder (3.0.0)
|
builder (3.0.0)
|
||||||
excon (0.5.5)
|
excon (0.5.6)
|
||||||
formatador (0.0.16)
|
formatador (0.0.16)
|
||||||
json (1.5.1)
|
json (1.5.1)
|
||||||
mime-types (1.16)
|
mime-types (1.16)
|
||||||
|
|
|
@ -9,7 +9,7 @@ module Fog
|
||||||
|
|
||||||
identity :id
|
identity :id
|
||||||
|
|
||||||
attribute :domain, :aliases => "name"
|
attribute :domain, :aliases => [:name, 'name']
|
||||||
attribute :created_at
|
attribute :created_at
|
||||||
attribute :updated_at
|
attribute :updated_at
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ module Fog
|
||||||
end
|
end
|
||||||
|
|
||||||
def get(zone_id)
|
def get(zone_id)
|
||||||
data = connection.get_domain(zone_id).body["domain"]
|
data = connection.get_domain(zone_id).body['domain']
|
||||||
new(data)
|
new(data)
|
||||||
rescue Excon::Errors::NotFound
|
rescue Excon::Errors::NotFound
|
||||||
nil
|
nil
|
||||||
|
|
Loading…
Reference in a new issue