Sha256: 45fc94ebee4943ba42b03bc9591b68913bb8fc172f47be87adb3c6bfba27fa65
Contents?: true
Size: 492 Bytes
Versions: 1
Compression:
Stored size: 492 Bytes
Contents
require 'fog/dynect/models/dns/zone' module Fog module Dynect class DNS class Zones < Fog::Collection model Fog::Dynect::DNS::Zone def all data = service.get_zone.body['data'].map do |zone| { :domain => zone } end load(data) end def get(zone_id) new(service.get_zone('zone' => zone_id).body['data']) rescue Excon::Errors::NotFound nil end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fog-dynect-0.5.0 | lib/fog/dynect/models/dns/zones.rb |