Class: Botfly::CallbackContext
- Inherits:
-
Object
- Object
- Botfly::CallbackContext
- Defined in:
- lib/botfly/callback_context.rb
Instance Method Summary collapse
-
#initialize(caller, params) ⇒ CallbackContext
constructor
A new instance of CallbackContext.
- #method_missing(name, *args) ⇒ Object
Constructor Details
#initialize(caller, params) ⇒ CallbackContext
Returns a new instance of CallbackContext.
3 4 5 6 |
# File 'lib/botfly/callback_context.rb', line 3 def initialize(caller, params) setup_params(params) @caller = caller end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object
7 8 9 |
# File 'lib/botfly/callback_context.rb', line 7 def method_missing(name, *args) @caller.send(name,*args) if name.to_s.scan(/^setup/).empty? end |