Sha256: 42420cfd0a69b79dfb3ec8af1af53d2d479351840b7ddfa4599fb4ce4a6ae166
Contents?: true
Size: 594 Bytes
Versions: 108
Compression:
Stored size: 594 Bytes
Contents
require 'fog/core/model' module Fog module Compute class Linode class Ip < Fog::Model identity :id attribute :ip attribute :public def save requires :server raise Fog::Errors::Error.new('Resaving an existing object may create a duplicate') if persisted? service.linode_ip_addprivate server.id server.ips.all.find { |ip| !ip.public } end def server @server end private def server=(server) @server = server end end end end end
Version data entries
108 entries across 106 versions & 11 rubygems