Module: Airship::Management::Padrino::ClassMethods
- Defined in:
- lib/airship/management/padrino.rb
Instance Method Summary collapse
- #destroy(options = {}, &block) ⇒ Object
- #edit(options = {}, &block) ⇒ Object
- #index(options = {}, &block) ⇒ Object
- #show(options = {}, &block) ⇒ Object
- #update(options = {}, &block) ⇒ Object
Instance Method Details
#destroy(options = {}, &block) ⇒ Object
25 26 27 |
# File 'lib/airship/management/padrino.rb', line 25 def destroy( = {}, &block) route 'DELETE', ":id/destroy", , &block end |
#edit(options = {}, &block) ⇒ Object
17 18 19 |
# File 'lib/airship/management/padrino.rb', line 17 def edit( = {}, &block) route 'GET', ":id/edit", , &block end |
#index(options = {}, &block) ⇒ Object
9 10 11 |
# File 'lib/airship/management/padrino.rb', line 9 def index( = {}, &block) route 'GET', "", , &block end |
#show(options = {}, &block) ⇒ Object
13 14 15 |
# File 'lib/airship/management/padrino.rb', line 13 def show( = {}, &block) route 'GET', ":id", , &block end |
#update(options = {}, &block) ⇒ Object
21 22 23 |
# File 'lib/airship/management/padrino.rb', line 21 def update( = {}, &block) route 'POST', ":id/update", , &block end |