Class: Action::VARIABLEController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Action::VARIABLEController
- Defined in:
- lib/forcast/tasks/schema/recips/action.rb
Instance Method Summary collapse
Instance Method Details
#example ⇒ Object
11 12 13 |
# File 'lib/forcast/tasks/schema/recips/action.rb', line 11 def example @response = 'Im an example' end |
#METODO ⇒ Object
2 3 4 5 6 7 8 9 |
# File 'lib/forcast/tasks/schema/recips/action.rb', line 2 def METODO unless permitted_methods.include?(@type.to_s) raise Forcast::Application::Error::General.new(t('error_type_not_allow')) end send(@type) json_response(@response, 'ok') end |
#permitted_methods ⇒ Object
15 16 17 |
# File 'lib/forcast/tasks/schema/recips/action.rb', line 15 def permitted_methods ['example'] end |