Module: Txter::Controller
- Defined in:
- lib/controller.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#create ⇒ Object
in case this is hooked up as a RESTful route.
-
#index ⇒ Object
the likely default.
Class Method Details
.included(controller) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/controller.rb', line 4 def self.included(controller) controller.instance_eval do # the user should specify which class gets contacted def sms_contactable(klass) @@contactable_class = klass end end end |
Instance Method Details
#create ⇒ Object
in case this is hooked up as a RESTful route
19 20 21 |
# File 'lib/controller.rb', line 19 def create recieve_xml end |
#index ⇒ Object
the likely default
14 15 16 |
# File 'lib/controller.rb', line 14 def index recieve_xml end |