Class: RubyApp::Elements::Markdown::ClickedEvent

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



17
18
19
20
# File 'lib/ruby_app/elements/markdown.rb', line 17

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



15
16
17
# File 'lib/ruby_app/elements/markdown.rb', line 15

def name
  @name
end

Instance Method Details

#to_hashObject



22
23
24
# File 'lib/ruby_app/elements/markdown.rb', line 22

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