Class: Fog::Joyent::Analytics::Transformations
- Inherits:
-
Collection
- Object
- Collection
- Fog::Joyent::Analytics::Transformations
- Defined in:
- lib/fog/joyent/models/analytics/transformations.rb
Instance Method Summary collapse
- #all ⇒ Object
-
#new(attributes = {}) ⇒ Object
Joyent returns an odd data structure like this: { ‘apache’ => => ‘Apache’} where the key is the name of the module.
Instance Method Details
#all ⇒ Object
9 10 11 12 |
# File 'lib/fog/joyent/models/analytics/transformations.rb', line 9 def all data = service.describe_analytics.body['transformations'] load(data) end |
#new(attributes = {}) ⇒ Object
Joyent returns an odd data structure like this: { ‘apache’ => => ‘Apache’} where the key is the name of the module
17 18 19 20 |
# File 'lib/fog/joyent/models/analytics/transformations.rb', line 17 def new(attributes = {}) name, other_attributes = attributes super(other_attributes.merge('name' => name)) end |