Class: MessageQuickly::Callback
- Inherits:
-
Object
- Object
- MessageQuickly::Callback
- Defined in:
- lib/message_quickly/callback.rb
Direct Known Subclasses
AccountLinkingCallback, AuthenticationCallback, MessageDeliveredCallback, MessageReadCallback, MessageReceivedCallback, PostbackCallback
Instance Attribute Summary collapse
-
#event ⇒ Object
readonly
Returns the value of attribute event.
-
#json ⇒ Object
readonly
Returns the value of attribute json.
Instance Method Summary collapse
-
#initialize(event, json) ⇒ Callback
constructor
A new instance of Callback.
Constructor Details
#initialize(event, json) ⇒ Callback
Returns a new instance of Callback.
6 7 8 9 10 |
# File 'lib/message_quickly/callback.rb', line 6 def initialize(event, json) @event ||= event @json ||= json self end |
Instance Attribute Details
#event ⇒ Object (readonly)
Returns the value of attribute event.
4 5 6 |
# File 'lib/message_quickly/callback.rb', line 4 def event @event end |
#json ⇒ Object (readonly)
Returns the value of attribute json.
4 5 6 |
# File 'lib/message_quickly/callback.rb', line 4 def json @json end |