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