Sha256: e50033532e3215f559f1c9c90f6356d3399fe610b07c4326f3a444ecd612c685

Contents?: true

Size: 755 Bytes

Versions: 7

Compression:

Stored size: 755 Bytes

Contents

require 'fog/core/collection'
require 'fog/aws/models/cdn/distribution'
require 'fog/aws/models/cdn/distributions_helper'

module Fog
  module CDN
    class AWS

      class Distributions < Fog::Collection
        include Fog::CDN::AWS::DistributionsHelper

        model Fog::CDN::AWS::Distribution

        attribute :marker,    :aliases => 'Marker'
        attribute :max_items, :aliases => 'MaxItems'
        attribute :is_truncated,    :aliases => 'IsTruncated'

        def get_distribution(dist_id)
          connection.get_distribution(dist_id)
        end

        def list_distributions(options = {})
          connection.get_distribution_list(options)
        end

        alias :each_distribution_this_page :each

      end

    end
  end
end

Version data entries

7 entries across 7 versions & 5 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/aws/models/cdn/distributions.rb
fog-nirvanix-1.8.1 lib/fog/aws/models/cdn/distributions.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/aws/models/cdn/distributions.rb
fog-sgonyea-1.8.1 lib/fog/aws/models/cdn/distributions.rb
fog-1.8.0 lib/fog/aws/models/cdn/distributions.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/aws/models/cdn/distributions.rb
fog-1.7.0 lib/fog/aws/models/cdn/distributions.rb