Class: Botfly::CallbackContext

Inherits:
Object
  • Object
show all
Defined in:
lib/botfly/callback_context.rb

Instance Method Summary collapse

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