Sha256: 76b70263bc2836f01a7641e9ce2465ffb241e02ecb2e380c34bb24007da778fb
Contents?: true
Size: 594 Bytes
Versions: 72
Compression:
Stored size: 594 Bytes
Contents
require 'fog/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) @id = new_href.split('/').last.to_i end def type=(new_type); end end end end end
Version data entries
72 entries across 72 versions & 2 rubygems