Sha256: 34b3dd357b29b5c3d707c251bb0d69e738135b3fb8203bbed17a25a45daad1bb
Contents?: true
Size: 602 Bytes
Versions: 75
Compression:
Stored size: 602 Bytes
Contents
require 'fog/core/model' module Fog module Terremark module Shared class Network < Fog::Model identity :id attribute :name attribute :subnet attribute :gateway attribute :netmask attribute :fencemode attribute :links def ips #Until there is a real model for these ? connection.get_network_ips(id).body['IpAddresses'] end private def href=(new_href) self.id = new_href.split('/').last.to_i end def type=(new_type); end end end end end
Version data entries
75 entries across 75 versions & 16 rubygems