class Fog::Compute::Packet::Project
Project
Model
Attributes
options[RW]
Public Class Methods
new(attributes = {})
click to toggle source
Calls superclass method
# File lib/fog/compute/packet/models/project.rb, line 24 def initialize(attributes = {}) super end
Public Instance Methods
destroy()
click to toggle source
# File lib/fog/compute/packet/models/project.rb, line 38 def destroy requires :id response = service.delete_project(id) true if response.status == 204 end
save(payment_method_id = "")
click to toggle source
# File lib/fog/compute/packet/models/project.rb, line 28 def save(payment_method_id = "") requires :name options = {} options[:name] = name options[:payment_method_id] = payment_method_id if payment_method_id response = service.create_project(options) merge_attributes(response.body) end