Class: RubyApp::Elements::Navigation::PageLink::ClickedEvent
- Inherits:
-
RubyApp::Element::Event
- Object
- RubyApp::Element::Event
- RubyApp::Elements::Navigation::PageLink::ClickedEvent
- Defined in:
- lib/ruby_app/elements/navigation/page_link.rb
Instance Attribute Summary collapse
-
#page ⇒ Object
readonly
Returns the value of attribute page.
Attributes inherited from RubyApp::Element::Event
Instance Method Summary collapse
-
#initialize(data) ⇒ ClickedEvent
constructor
A new instance of ClickedEvent.
- #to_hash ⇒ Object
Methods inherited from RubyApp::Element::Event
#add_class, #alert, #confirm_refresh, #execute, from_hash, #go, #hide_dialog, #log, #process!, #refresh, #remove_class, #set_cookie, #show_dialog, #today, #update_element, #update_text, #update_value
Methods included from Mixins::TranslateMixin
Constructor Details
#initialize(data) ⇒ ClickedEvent
Returns a new instance of ClickedEvent.
15 16 17 18 |
# File 'lib/ruby_app/elements/navigation/page_link.rb', line 15 def initialize(data) super(data) @page = eval(data['page']) end |
Instance Attribute Details
#page ⇒ Object (readonly)
Returns the value of attribute page.
13 14 15 |
# File 'lib/ruby_app/elements/navigation/page_link.rb', line 13 def page @page end |
Instance Method Details
#to_hash ⇒ Object
20 21 22 |
# File 'lib/ruby_app/elements/navigation/page_link.rb', line 20 def to_hash super.merge('page' => @page) end |