Class: RubyApp::Elements::Mobile::List::ClickedEvent
- Inherits:
-
RubyApp::Element::Event
- Object
- RubyApp::Element::Event
- RubyApp::Elements::Mobile::List::ClickedEvent
- Defined in:
- lib/ruby_app/elements/mobile/list.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#item ⇒ Object
readonly
Returns the value of attribute item.
Attributes inherited from RubyApp::Element::Event
Instance Method Summary collapse
-
#initialize(data) ⇒ ClickedEvent
constructor
A new instance of ClickedEvent.
- #to_hash ⇒ Object
Methods inherited from RubyApp::Element::Event
#add_class, #assert_exists_input, #assert_exists_link, #assert_exists_selector, #assert_exists_selector_for, #assert_exists_selector_value_for, #assert_exists_text, #confirm_refresh_browser, #create_trigger, #destroy_trigger, #execute, from_hash, #go, #log, #process!, #quit!, #refresh_browser, #remove_class, #remove_page, #set_cookie, #show_page, #swipe, #tap_link, #tap_list_item, #tap_list_link, #tap_selector, #today, #update_element, #update_input, #update_style, #update_text, #update_value, #update_value_for
Methods included from Mixins::TranslateMixin
Constructor Details
#initialize(data) ⇒ ClickedEvent
Returns a new instance of ClickedEvent.
60 61 62 63 64 65 66 67 |
# File 'lib/ruby_app/elements/mobile/list.rb', line 60 def initialize(data) super(data) item = RubyApp::Element.get_element(data['item']) raise RubyApp::Exceptions::ElementInvalidException.new(data['item']) unless item @item = item end |
Instance Attribute Details
#item ⇒ Object (readonly)
Returns the value of attribute item.
58 59 60 |
# File 'lib/ruby_app/elements/mobile/list.rb', line 58 def item @item end |
Instance Method Details
#to_hash ⇒ Object
69 70 71 |
# File 'lib/ruby_app/elements/mobile/list.rb', line 69 def to_hash super.merge('item' => @item.element_id) end |