Sha256: 116b289b40deff25d15e039b7abc62a848999ece9d905ca7e4a7b46b93858024
Contents?: true
Size: 561 Bytes
Versions: 7
Compression:
Stored size: 561 Bytes
Contents
require 'rackspace-fog/core/collection' require 'rackspace-monitoring/monitoring/models/agent_token' module Fog module Monitoring class Rackspace class AgentTokens < Fog::Collection model Fog::Monitoring::Rackspace::AgentToken def all data = connection.list_agent_tokens.body['values'] load(data) end def get(id) data = connection.get_agent_token(id).body new(data) rescue Fog::Monitoring::Rackspace::NotFound nil end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems