Sha256: f606cd1838a4fa01ed0eca94388a290a279c1f0ccf795c316c912732970cd3d1
Contents?: true
Size: 613 Bytes
Versions: 36
Compression:
Stored size: 613 Bytes
Contents
require 'fog/joyent/models/analytics/field' module Fog module Joyent class Analytics class Fields < Fog::Collection model Fog::Joyent::Analytics::Field def all data = service.describe_analytics.body['fields'] load(data) end # Joyent returns an odd data structure like this: # { 'apache' => {'label' => 'Apache'}} # where the key is the name of the module def new(attributes = {}) name, other_attributes = attributes super(other_attributes.merge('name' => name)) end end end end end
Version data entries
36 entries across 34 versions & 6 rubygems