class Fog::Joyent::Analytics::JoyentModules

Public Instance Methods

all() click to toggle source
# File lib/fog/joyent/models/analytics/joyent_modules.rb, line 9
def all
  data = service.describe_analytics.body['modules']
  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

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