Class: RubyApp::Element::AssertedEvent
- Defined in:
- lib/ruby_app/element.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from Event
Instance Method Summary collapse
-
#initialize(data) ⇒ AssertedEvent
constructor
A new instance of AssertedEvent.
Methods inherited from 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, #to_hash, #today, #update_element, #update_input, #update_style, #update_text, #update_value, #update_value_for
Methods included from Mixins::TranslateMixin
Constructor Details
#initialize(data) ⇒ AssertedEvent
Returns a new instance of AssertedEvent.
238 239 240 241 242 |
# File 'lib/ruby_app/element.rb', line 238 def initialize(data) super(data) @name = data['name'] @value = data['value'].to_b end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
235 236 237 |
# File 'lib/ruby_app/element.rb', line 235 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
236 237 238 |
# File 'lib/ruby_app/element.rb', line 236 def value @value end |