Class: RubyApp::Elements::Mobile::List::SearchedEvent
- Inherits:
-
RubyApp::Element::Event
- Object
- RubyApp::Element::Event
- RubyApp::Elements::Mobile::List::SearchedEvent
- Defined in:
- lib/ruby_app/elements/mobile/list.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from RubyApp::Element::Event
Instance Method Summary collapse
-
#initialize(data) ⇒ SearchedEvent
constructor
A new instance of SearchedEvent.
- #to_hash ⇒ Object
Methods inherited from RubyApp::Element::Event
#add_class, #assert, #assert_exists_input, #assert_exists_link, #assert_exists_search, #assert_exists_selector, #assert_exists_selector_for, #assert_exists_selector_value, #assert_exists_selector_value_for, #assert_exists_text, #assert_is_selector_visible, #assert_is_text_visible, #assert_not_exists_input, #assert_not_exists_link, #assert_not_exists_search, #assert_not_exists_selector, #assert_not_exists_selector_for, #assert_not_exists_selector_value, #assert_not_exists_selector_value_for, #assert_not_exists_text, #assert_not_is_selector_visible, #assert_not_is_text_visible, #click_link, #click_list_item, #click_list_link, #click_selector, #confirm_refresh_browser, #create_trigger, #destroy_trigger, #execute, from_hash, #go, #log, #process!, #quit!, #refresh_browser, #remove_class, #remove_page, #send_message, #set_cookie, #show_page, #swipe, #today, #update_element, #update_element?, #update_input, #update_search, #update_style, #update_text, #update_value, #update_value_for
Methods included from Mixins::TranslateMixin
Constructor Details
#initialize(data) ⇒ SearchedEvent
Returns a new instance of SearchedEvent.
95 96 97 98 99 |
# File 'lib/ruby_app/elements/mobile/list.rb', line 95 def initialize(data) super(data) @value = data['value'].strip @value = @value.empty? ? nil : @value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
93 94 95 |
# File 'lib/ruby_app/elements/mobile/list.rb', line 93 def value @value end |
Instance Method Details
#to_hash ⇒ Object
101 102 103 |
# File 'lib/ruby_app/elements/mobile/list.rb', line 101 def to_hash super.merge(:value => @value) end |