Class: RubyApp::Elements::Mobile::Calendars::Month::ChangedEvent
- Inherits:
-
RubyApp::Element::Event
- Object
- RubyApp::Element::Event
- RubyApp::Elements::Mobile::Calendars::Month::ChangedEvent
- Defined in:
- lib/ruby_app/elements/mobile/calendars/month.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) ⇒ ChangedEvent
constructor
A new instance of ChangedEvent.
- #to_hash ⇒ Object
Methods inherited from RubyApp::Element::Event
#add_class, #assert, #assert_exists_input, #assert_exists_link, #assert_exists_selector, #assert_exists_selector_for, #assert_exists_selector_value_for, #assert_exists_text, #assert_not_exists_selector, #assert_not_exists_text, #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_input, #update_style, #update_text, #update_value, #update_value_for
Methods included from Mixins::TranslateMixin
Constructor Details
#initialize(data) ⇒ ChangedEvent
Returns a new instance of ChangedEvent.
21 22 23 24 25 |
# File 'lib/ruby_app/elements/mobile/calendars/month.rb', line 21 def initialize(data) super(data) @value = data['value'].strip @value = @value.empty? ? nil : Date.parse(@value) end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
19 20 21 |
# File 'lib/ruby_app/elements/mobile/calendars/month.rb', line 19 def value @value end |
Instance Method Details
#to_hash ⇒ Object
27 28 29 |
# File 'lib/ruby_app/elements/mobile/calendars/month.rb', line 27 def to_hash super.merge(:value => @value) end |