Sha256: bc2ebbfdc60e40166f56b3ec1d1ee530139bd29f0080e3e21f187b624449b862
Contents?: true
Size: 641 Bytes
Versions: 7
Compression:
Stored size: 641 Bytes
Contents
require 'fog/core/collection' require 'fog/compute/models/ninefold/ip_forwarding_rule' module Fog module Compute class Ninefold class IpForwardingRules < Fog::Collection model Fog::Compute::Ninefold::IpForwardingRule def all data = connection.list_ip_forwarding_rules load(data) end def get(identifier) return nil if identifier.nil? || identifier == "" data = connection.list_ip_forwarding_rules(:id => identifier) if data.empty? nil else new(data[0]) end end end end end end
Version data entries
7 entries across 7 versions & 3 rubygems