Parent

Methods

Class/Module Index [+]

Quicksearch

Fog::Joyent::Analytics::Types

Public Instance Methods

all() click to toggle source
# File lib/fog/joyent/models/analytics/types.rb, line 9
def all
  data = service.describe_analytics.body['types']
  load(data)
end
new(attributes = {}) click to toggle source

Joyent returns an odd data structure like this: { 'apache' => {'label' => 'Apache'}} where the key is the name of the module

# File lib/fog/joyent/models/analytics/types.rb, line 17
def new(attributes = {})
  name, other_attributes = attributes
  super(other_attributes.merge('name' => name))
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.