Class: Wonkavision::EventContext

Inherits:
Object
  • Object
show all
Defined in:
lib/wonkavision/event_context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data, path, binding, callback) ⇒ EventContext

Returns a new instance of EventContext.



5
6
7
# File 'lib/wonkavision/event_context.rb', line 5

def initialize(data,path,binding,callback)
  @data, @path, @binding, @callback = data, path, binding, callback
end

Instance Attribute Details

#bindingObject

Returns the value of attribute binding.



3
4
5
# File 'lib/wonkavision/event_context.rb', line 3

def binding
  @binding
end

#callbackObject

Returns the value of attribute callback.



3
4
5
# File 'lib/wonkavision/event_context.rb', line 3

def callback
  @callback
end

#dataObject

Returns the value of attribute data.



3
4
5
# File 'lib/wonkavision/event_context.rb', line 3

def data
  @data
end

#pathObject

Returns the value of attribute path.



3
4
5
# File 'lib/wonkavision/event_context.rb', line 3

def path
  @path
end