Class: Hahamut::Event
- Inherits:
-
Object
- Object
- Hahamut::Event
- Includes:
- Support::Attributes
- Defined in:
- lib/hahamut/event.rb
Overview
Hahamut Webhook Event
Instance Attribute Summary
Attributes included from Support::Attributes
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Event
constructor
A new instance of Event.
- #messaging ⇒ Object
- #messaging=(messages) ⇒ Object
Methods included from Support::Attributes
Constructor Details
#initialize(attributes) ⇒ Event
Returns a new instance of Event.
11 12 13 14 15 |
# File 'lib/hahamut/event.rb', line 11 def initialize(attributes) assign_attributes(attributes) @attributes[:messaging] ||= [] end |
Instance Method Details
#messaging ⇒ Object
17 18 19 |
# File 'lib/hahamut/event.rb', line 17 def messaging @attributes[:messaging] end |