Class: RubyApp::Elements::Navigation::PageLink::ClickedEvent

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

Instance Attribute Summary collapse

Attributes inherited from RubyApp::Element::Event

#now, #source

Instance Method Summary collapse

Methods inherited from RubyApp::Element::Event

#add_class, #alert, #confirm_refresh, #execute, from_hash, #go, #hide, #process!, #refresh, #remove_class, #set_cookie, #show, #today, #update_element, #update_text, #update_value

Methods included from Mixins::TranslateMixin

#localize, #translate

Constructor Details

#initialize(data) ⇒ ClickedEvent

Returns a new instance of ClickedEvent.



14
15
16
17
# File 'lib/ruby_app/elements/navigation/page_link.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_link.rb', line 12

def page
  @page
end

Instance Method Details

#to_hashObject



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

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