Class: Fog::Compute::Packet::Events

Inherits:
Fog::Collection
  • Object
show all
Defined in:
lib/fog/compute/packet/models/events.rb

Overview

Events Collection

Instance Method Summary collapse

Instance Method Details

#all(device_id, params = {}) ⇒ Object



10
11
12
13
# File 'lib/fog/compute/packet/models/events.rb', line 10

def all(device_id, params = {})
  response = service.list_events(device_id, params)
  load(response.body["events"])
end