class Fog::Terremark::Shared::NodeService

Public Instance Methods

destroy() click to toggle source
# File lib/fog/terremark/models/shared/nodeservice.rb, line 18
def destroy
  connection.delete_node_service(self.Id)
end
save() click to toggle source
# File lib/fog/terremark/models/shared/nodeservice.rb, line 22
def save
 requires :Name, :Port, :InternetServiceId
    data = connection.add_node_service(
        service_id = self.InternetServiceId,
        ip = self.IpAddress,
        name = self.Name,
        port = self.Port,
        options = {"Enabled" => 'true',
                   "Description" => self.Name,
        }
    
    )
    merge_attributes(data.body)
    true
end

Private Instance Methods

href=(new_href) click to toggle source
# File lib/fog/terremark/models/shared/nodeservice.rb, line 40
def href=(new_href)
  self.id = new_href.split('/').last.to_i
end
size=(new_size) click to toggle source
# File lib/fog/terremark/models/shared/nodeservice.rb, line 45
def size=(new_size); @size = new_size; end
type=(new_type) click to toggle source
# File lib/fog/terremark/models/shared/nodeservice.rb, line 44
def type=(new_type); @type = new_type; end