Class: Octoks::Event

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, payload) ⇒ Event

Returns a new instance of Event.



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

def initialize(name, payload)
  @name    = name
  @payload = payload
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/octoks/event.rb', line 3

def name
  @name
end

#payloadObject

Returns the value of attribute payload.



3
4
5
# File 'lib/octoks/event.rb', line 3

def payload
  @payload
end