Class: Ask::Tokens::CallbackContext
- Inherits:
-
Data
- Object
- Data
- Ask::Tokens::CallbackContext
- Defined in:
- lib/ask/tokens/callback_context.rb
Overview
Payload delivered to configured callbacks (on_grant, on_spend, on_insufficient).
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#entry ⇒ Object
readonly
Returns the value of attribute entry.
-
#event ⇒ Object
readonly
Returns the value of attribute event.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#new_balance ⇒ Object
readonly
Returns the value of attribute new_balance.
-
#owner ⇒ Object
readonly
Returns the value of attribute owner.
-
#previous_balance ⇒ Object
readonly
Returns the value of attribute previous_balance.
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount
8 9 10 |
# File 'lib/ask/tokens/callback_context.rb', line 8 def amount @amount end |
#entry ⇒ Object (readonly)
Returns the value of attribute entry
8 9 10 |
# File 'lib/ask/tokens/callback_context.rb', line 8 def entry @entry end |
#event ⇒ Object (readonly)
Returns the value of attribute event
8 9 10 |
# File 'lib/ask/tokens/callback_context.rb', line 8 def event @event end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata
8 9 10 |
# File 'lib/ask/tokens/callback_context.rb', line 8 def @metadata end |
#new_balance ⇒ Object (readonly)
Returns the value of attribute new_balance
8 9 10 |
# File 'lib/ask/tokens/callback_context.rb', line 8 def new_balance @new_balance end |
#owner ⇒ Object (readonly)
Returns the value of attribute owner
8 9 10 |
# File 'lib/ask/tokens/callback_context.rb', line 8 def owner @owner end |
#previous_balance ⇒ Object (readonly)
Returns the value of attribute previous_balance
8 9 10 |
# File 'lib/ask/tokens/callback_context.rb', line 8 def previous_balance @previous_balance end |
#reason ⇒ Object (readonly)
Returns the value of attribute reason
8 9 10 |
# File 'lib/ask/tokens/callback_context.rb', line 8 def reason @reason end |
Instance Method Details
#insufficient? ⇒ Boolean
18 19 20 |
# File 'lib/ask/tokens/callback_context.rb', line 18 def insufficient? event == :insufficient end |