Class: RubyApp::Elements::Navigation::Base::BaseBreadcrumbs::ClickedEvent

Inherits:
RubyApp::Element::Event show all
Defined in:
lib/ruby_app/elements/navigation/base/base_breadcrumbs.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.



21
22
23
24
# File 'lib/ruby_app/elements/navigation/base/base_breadcrumbs.rb', line 21

def initialize(data)
  super(data)
  @page = RubyApp::Element.get_element(data['page_id'])
end

Instance Attribute Details

#pageObject (readonly)

Returns the value of attribute page.



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

def page
  @page
end

Instance Method Details

#to_hashObject



26
27
28
# File 'lib/ruby_app/elements/navigation/base/base_breadcrumbs.rb', line 26

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