Sha256: 6650caafd769b2be43ed14185b0cdaa707b14b93c0dc6ed740189b6af00742dc

Contents?: true

Size: 648 Bytes

Versions: 25

Compression:

Stored size: 648 Bytes

Contents

require 'fog/ecloud/models/compute/ip'

module Fog
  module Compute
    class Ecloud
      class Ips < Fog::Ecloud::Collection

        model Fog::Compute::Ecloud::Ip

        undef_method :create

        attribute :href

        def all
          check_href!( :messages => "Ips href of a Network you want to enumerate" )
          if data = connection.get_network_ips(href).body[:IpAddress]
            load(data)
          end
        end

        def get(uri)
          if data = connection.get_network_ip(uri).body
            new(data)
          end
        rescue Fog::Errors::NotFound
          nil
        end

      end
    end
  end
end

Version data entries

25 entries across 25 versions & 7 rubygems

Version Path
brightbox-cli-0.15.0 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/ips.rb
tag-fog-1.0.1 lib/fog/ecloud/models/compute/ips.rb
brightbox-cli-0.14.1 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/ips.rb
brightbox-cli-0.14.0 lib/brightbox-cli/vendor/fog/lib/fog/ecloud/models/compute/ips.rb
fog-1.0.0 lib/fog/ecloud/models/compute/ips.rb