Class: AQClickListener
- Inherits:
-
Object
- Object
- AQClickListener
- Defined in:
- lib/android_query/android_query.rb
Instance Attribute Summary collapse
-
#activity ⇒ Object
Returns the value of attribute activity.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(activity, options) ⇒ AQClickListener
constructor
A new instance of AQClickListener.
- #onClick(view) ⇒ Object
Constructor Details
#initialize(activity, options) ⇒ AQClickListener
Returns a new instance of AQClickListener.
170 171 172 173 |
# File 'lib/android_query/android_query.rb', line 170 def initialize(activity, ) self.activity = activity self. = end |
Instance Attribute Details
#activity ⇒ Object
Returns the value of attribute activity.
168 169 170 |
# File 'lib/android_query/android_query.rb', line 168 def activity @activity end |
#options ⇒ Object
Returns the value of attribute options.
168 169 170 |
# File 'lib/android_query/android_query.rb', line 168 def @options end |
Instance Method Details
#onClick(view) ⇒ Object
175 176 177 |
# File 'lib/android_query/android_query.rb', line 175 def onClick(view) self.activity.send(self.[:click], view) end |