Module: Forcast::Controller::RuleController

Extended by:
ActiveSupport::Concern
Defined in:
lib/forcast/controllers/controller/rule_engine/rule_controller.rb

Instance Method Summary collapse

Instance Method Details

#pollingsObject



14
15
16
# File 'lib/forcast/controllers/controller/rule_engine/rule_controller.rb', line 14

def pollings
	json_response(@model_id.polling,'ok')
end

#rulesObject



18
19
20
# File 'lib/forcast/controllers/controller/rule_engine/rule_controller.rb', line 18

def rules
	json_response(@model_id.rule,'ok')
end

#set_model_id_ruleObject



22
23
24
# File 'lib/forcast/controllers/controller/rule_engine/rule_controller.rb', line 22

def set_model_id_rule
	set_model_id
end

#webhooksObject



10
11
12
# File 'lib/forcast/controllers/controller/rule_engine/rule_controller.rb', line 10

def webhooks
	json_response(@model_id.webhook,'ok')
end