Class: RubyApp::Element::AssertedEvent

Inherits:
Event
  • Object
show all
Defined in:
lib/ruby_app/element.rb

Instance Attribute Summary collapse

Attributes inherited from Event

#now, #session, #source

Instance Method Summary collapse

Methods inherited from 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, #to_hash, #today, #update_element, #update_input, #update_style, #update_text, #update_value, #update_value_for

Methods included from Mixins::TranslateMixin

#localize, #translate

Constructor Details

#initialize(data) ⇒ AssertedEvent

Returns a new instance of AssertedEvent.



216
217
218
219
220
# File 'lib/ruby_app/element.rb', line 216

def initialize(data)
  super(data)
  @name = data['name']
  @value = data['value'].to_b
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



213
214
215
# File 'lib/ruby_app/element.rb', line 213

def name
  @name
end

#valueObject (readonly)

Returns the value of attribute value.



214
215
216
# File 'lib/ruby_app/element.rb', line 214

def value
  @value
end