Sha256: bf8aad3209ea4a15e32b2a63f9e8c2b03b8a7a4eb5aac4baae4281e283f9226b
Contents?: true
Size: 493 Bytes
Versions: 7
Compression:
Stored size: 493 Bytes
Contents
require 'fog/core/collection' require 'fog/dns/models/linode/zone' module Fog module DNS class Linode class Zones < Fog::Collection model Fog::DNS::Linode::Zone def all data = connection.domain_list.body['DATA'] load(data) end def get(zone_id) if data = connection.domain_list(zone_id).body['DATA'].first new(data) else nil end end end end end end
Version data entries
7 entries across 7 versions & 3 rubygems