Sha256: 6cadd9748ffe691a35cd82aeec31d401d239a07c392524716a959a055d5d9943
Contents?: true
Size: 609 Bytes
Versions: 36
Compression:
Stored size: 609 Bytes
Contents
require 'fog/joyent/models/analytics/type' module Fog module Joyent class Analytics class Types < Fog::Collection model Fog::Joyent::Analytics::Type def all data = service.describe_analytics.body['types'] 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