Class: RubyApp::Elements::Navigation::PageMenu::ClickedEvent

Inherits:
RubyApp::Element::Event show all
Defined in:
lib/ruby_app/elements/navigation/page_menu.rb

Instance Attribute Summary collapse

Attributes inherited from RubyApp::Element::Event

#source

Instance Method Summary collapse

Methods inherited from RubyApp::Element::Event

#alert, #execute, from_hash, #go, #hide, #process!, #refresh, #show, #update_element, #update_text, #update_value

Constructor Details

#initialize(data) ⇒ ClickedEvent

Returns a new instance of ClickedEvent.



14
15
16
17
# File 'lib/ruby_app/elements/navigation/page_menu.rb', line 14

def initialize(data)
  super(data)
  @page = eval(data['page'])
end

Instance Attribute Details

#pageObject (readonly)

Returns the value of attribute page.



12
13
14
# File 'lib/ruby_app/elements/navigation/page_menu.rb', line 12

def page
  @page
end

Instance Method Details

#to_hashObject



19
20
21
# File 'lib/ruby_app/elements/navigation/page_menu.rb', line 19

def to_hash
  super.merge('page' => @page)
end