Class: BERGCloud::Event
- Inherits:
-
Object
- Object
- BERGCloud::Event
- Defined in:
- lib/bergcloud/event.rb
Instance Attribute Summary collapse
-
#event_id ⇒ Object
readonly
Returns the value of attribute event_id.
Instance Method Summary collapse
- #info ⇒ Object
-
#initialize(event_id) ⇒ Event
constructor
A new instance of Event.
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_id ⇒ Object (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
#info ⇒ Object
10 11 12 |
# File 'lib/bergcloud/event.rb', line 10 def info BERGCloud::Client.get("/commands/#{@event_id}").body || {} end |