Class: AMQTapListener
- Inherits:
-
Object
- Object
- AMQTapListener
- Defined in:
- lib/android_motion_query/events.rb
Instance Attribute Summary collapse
-
#activity ⇒ Object
Returns the value of attribute activity.
-
#amq ⇒ Object
Returns the value of attribute amq.
-
#callback ⇒ Object
Returns the value of attribute callback.
Instance Method Summary collapse
-
#initialize(activity, amq, &block) ⇒ AMQTapListener
constructor
A new instance of AMQTapListener.
- #onClick(view) ⇒ Object
Constructor Details
#initialize(activity, amq, &block) ⇒ AMQTapListener
Returns a new instance of AMQTapListener.
16 17 18 19 20 21 |
# File 'lib/android_motion_query/events.rb', line 16 def initialize(activity, amq, &block) self.activity = activity self.callback = block self.amq = amq self end |
Instance Attribute Details
#activity ⇒ Object
Returns the value of attribute activity.
15 16 17 |
# File 'lib/android_motion_query/events.rb', line 15 def activity @activity end |
#amq ⇒ Object
Returns the value of attribute amq.
15 16 17 |
# File 'lib/android_motion_query/events.rb', line 15 def amq @amq end |
#callback ⇒ Object
Returns the value of attribute callback.
15 16 17 |
# File 'lib/android_motion_query/events.rb', line 15 def callback @callback end |
Instance Method Details
#onClick(view) ⇒ Object
23 24 25 |
# File 'lib/android_motion_query/events.rb', line 23 def onClick(view) self.callback.call(view) end |