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

Version Path
brightbox-cli-0.13.1 lib/brightbox-cli/vendor/fog/lib/fog/dns/models/linode/zones.rb
brightbox-cli-0.13.0 lib/brightbox-cli/vendor/fog/lib/fog/dns/models/linode/zones.rb
fog-0.11.0 lib/fog/dns/models/linode/zones.rb
fog-0.10.0 lib/fog/dns/models/linode/zones.rb
fog4encbs-0.9.0.1 lib/fog/dns/models/linode/zones.rb
fog4encbs-0.9.0 lib/fog/dns/models/linode/zones.rb
fog-0.9.0 lib/fog/dns/models/linode/zones.rb