Class: RubyApp::Elements::Input::ChangedEvent

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

Returns a new instance of ChangedEvent.



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

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

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



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

def value
  @value
end

Instance Method Details

#to_hashObject



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

def to_hash
  super.merge(:value => @value)
end