Class: BERGCloud::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/bergcloud/event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(event_id) ⇒ Event

Returns a new instance of Event.



6
7
8
# File 'lib/bergcloud/event.rb', line 6

def initialize(event_id)
  @event_id = event_id
end

Instance Attribute Details

#event_idObject (readonly)

Returns the value of attribute event_id.



4
5
6
# File 'lib/bergcloud/event.rb', line 4

def event_id
  @event_id
end

Instance Method Details

#infoObject



10
11
12
# File 'lib/bergcloud/event.rb', line 10

def info
  BERGCloud::Client.get("/commands/#{@event_id}").body || {}
end