Class: Fog::Rackspace::Monitoring::AgentTokens
- Inherits:
-
Collection
- Object
- Collection
- Fog::Rackspace::Monitoring::AgentTokens
- Defined in:
- lib/fog/rackspace/models/monitoring/agent_tokens.rb
Instance Method Summary collapse
Instance Method Details
#all(options = {}) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/fog/rackspace/models/monitoring/agent_tokens.rb', line 12 def all(={}) clear body = service.list_agent_tokens().body self.marker = body['metadata']['next_marker'] load(body['values']) end |
#get(id) ⇒ Object
20 21 22 23 24 25 |
# File 'lib/fog/rackspace/models/monitoring/agent_tokens.rb', line 20 def get(id) data = service.get_agent_token(id).body new(data) rescue Fog::Rackspace::Monitoring::NotFound nil end |