Sha256: 3a97a2c21aaf8ca229683d2eecfa5cece6cd8b8557ea084e83528a6509224d69

Contents?: true

Size: 631 Bytes

Versions: 30

Compression:

Stored size: 631 Bytes

Contents

require 'fog/core/collection'
require 'fog/ninefold/models/compute/ip_forwarding_rule'

module Fog
  module Compute
    class Ninefold
      class IpForwardingRules < Fog::Collection
        model Fog::Compute::Ninefold::IpForwardingRule

        def all
          data = service.list_ip_forwarding_rules
          load(data)
        end

        def get(identifier)
          return nil if identifier.nil? || identifier == ""
          data = service.list_ip_forwarding_rules(:id => identifier)
          if data.empty?
            nil
          else
            new(data[0])
          end
        end
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 4 rubygems

Version Path
fog-1.38.0 lib/fog/ninefold/models/compute/ip_forwarding_rules.rb
fog-1.37.0 lib/fog/ninefold/models/compute/ip_forwarding_rules.rb
fog-1.36.0 lib/fog/ninefold/models/compute/ip_forwarding_rules.rb
fog-1.35.0 lib/fog/ninefold/models/compute/ip_forwarding_rules.rb
fog-2.0.0.pre.0 lib/fog/ninefold/models/compute/ip_forwarding_rules.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/lib/fog/ninefold/models/compute/ip_forwarding_rules.rb
fog-1.34.0 lib/fog/ninefold/models/compute/ip_forwarding_rules.rb
fog-1.33.0 lib/fog/ninefold/models/compute/ip_forwarding_rules.rb
fog-1.32.0 lib/fog/ninefold/models/compute/ip_forwarding_rules.rb
fog-1.31.0 lib/fog/ninefold/models/compute/ip_forwarding_rules.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/ninefold/models/compute/ip_forwarding_rules.rb
fog-1.30.0 lib/fog/ninefold/models/compute/ip_forwarding_rules.rb
fog-1.29.0 lib/fog/ninefold/models/compute/ip_forwarding_rules.rb
fog-1.28.0 lib/fog/ninefold/models/compute/ip_forwarding_rules.rb
fog-1.27.0 lib/fog/ninefold/models/compute/ip_forwarding_rules.rb
fog-1.26.0 lib/fog/ninefold/models/compute/ip_forwarding_rules.rb
fog-1.25.0 lib/fog/ninefold/models/compute/ip_forwarding_rules.rb
nsidc-fog-1.24.1 lib/fog/ninefold/models/compute/ip_forwarding_rules.rb
fog-1.24.0 lib/fog/ninefold/models/compute/ip_forwarding_rules.rb
ns-fog-1.22.11 lib/fog/ninefold/models/compute/ip_forwarding_rules.rb