Class: RubyApp::Elements::Input::ChangedEvent
- Inherits:
-
RubyApp::Element::Event
- Object
- RubyApp::Element::Event
- RubyApp::Elements::Input::ChangedEvent
- Defined in:
- lib/ruby_app/elements/input.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from RubyApp::Element::Event
Instance Method Summary collapse
-
#initialize(data) ⇒ ChangedEvent
constructor
A new instance of ChangedEvent.
- #to_hash ⇒ Object
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
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
#value ⇒ Object (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_hash ⇒ Object
22 23 24 |
# File 'lib/ruby_app/elements/input.rb', line 22 def to_hash super.merge(:value => @value) end |