class Fog::Compute::Packet::Capacities

Capacities Collection

Public Instance Methods

all() click to toggle source
# File lib/fog/compute/packet/models/capacities.rb, line 10
def all
  response = service.get_capacity
  new(response.body["capacity"])
end
get(id) click to toggle source
# File lib/fog/compute/packet/models/capacities.rb, line 15
def get(id)
  response = service.get_device(id)
  new(response.body)
end
validate(options) click to toggle source
# File lib/fog/compute/packet/models/capacities.rb, line 20
def validate(options)
  response = service.validate_capacity(options)
  true if response.status == 204
end