Class: Mentawai::Core::Action
- Inherits:
-
Object
- Object
- Mentawai::Core::Action
- Defined in:
- lib/mentawai/core/action.rb
Instance Attribute Summary collapse
-
#application ⇒ Object
Returns the value of attribute application.
-
#cookies ⇒ Object
Returns the value of attribute cookies.
-
#input ⇒ Object
Returns the value of attribute input.
-
#locale ⇒ Object
Returns the value of attribute locale.
-
#output ⇒ Object
Returns the value of attribute output.
-
#page ⇒ Object
Returns the value of attribute page.
-
#session ⇒ Object
Returns the value of attribute session.
Instance Method Summary collapse
Instance Attribute Details
#application ⇒ Object
Returns the value of attribute application.
6 7 8 |
# File 'lib/mentawai/core/action.rb', line 6 def application @application end |
#cookies ⇒ Object
Returns the value of attribute cookies.
6 7 8 |
# File 'lib/mentawai/core/action.rb', line 6 def end |
#input ⇒ Object
Returns the value of attribute input.
6 7 8 |
# File 'lib/mentawai/core/action.rb', line 6 def input @input end |
#locale ⇒ Object
Returns the value of attribute locale.
6 7 8 |
# File 'lib/mentawai/core/action.rb', line 6 def locale @locale end |
#output ⇒ Object
Returns the value of attribute output.
6 7 8 |
# File 'lib/mentawai/core/action.rb', line 6 def output @output end |
#page ⇒ Object
Returns the value of attribute page.
6 7 8 |
# File 'lib/mentawai/core/action.rb', line 6 def page @page end |
#session ⇒ Object
Returns the value of attribute session.
6 7 8 |
# File 'lib/mentawai/core/action.rb', line 6 def session @session end |
Instance Method Details
#errors ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/mentawai/core/action.rb', line 17 def errors return nil if output.nil? errs = output['errors'] if not errs output['errors'] = errs = Array.new end errs end |
#fieldErrors ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'lib/mentawai/core/action.rb', line 26 def fieldErrors return nil if output.nil? fieldErrs = output['fieldErrors'] if not fieldErrs output['fieldErrors'] = fieldErrs = Hash.new end fieldErrs end |
#messages ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/mentawai/core/action.rb', line 8 def return nil if output.nil? msgs = output['messages'] if not msgs output['messages'] = msgs = Array.new end msgs end |