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, #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

#localize, #translate

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

#nameObject (readonly)

Returns the value of attribute name.



235
236
237
# File 'lib/ruby_app/element.rb', line 235

def name
  @name
end

#valueObject (readonly)

Returns the value of attribute value.



236
237
238
# File 'lib/ruby_app/element.rb', line 236

def value
  @value
end