Class: Fog::Rackspace::CDNV2::Services

Inherits:
Collection
  • Object
show all
Defined in:
lib/fog/rackspace/models/cdn_v2/services.rb

Instance Method Summary collapse

Instance Method Details

#all(options = {}) ⇒ Object


10
11
12
13
# File 'lib/fog/rackspace/models/cdn_v2/services.rb', line 10

def all(options={})
  data = service.list_services(options).body['services']
  load(data)
end

#get(id) ⇒ Object


15
16
17
18
19
20
# File 'lib/fog/rackspace/models/cdn_v2/services.rb', line 15

def get(id)
  data = service.get_service(id).body
  new(data)
rescue Fog::Rackspace::CDNV2::NotFound
  nil
end