Module: Airship::Management::Sinatra::ClassMethods
- Defined in:
- lib/airship/management/sinatra.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/sinatra.rb', line 25 def destroy( = {}, &block) delete "/:id/destroy", , &block end |
#edit(options = {}, &block) ⇒ Object
17 18 19 |
# File 'lib/airship/management/sinatra.rb', line 17 def edit( = {}, &block) get "/:id/edit", , &block end |
#index(options = {}, &block) ⇒ Object
9 10 11 |
# File 'lib/airship/management/sinatra.rb', line 9 def index( = {}, &block) get "/", , &block end |
#show(options = {}, &block) ⇒ Object
13 14 15 |
# File 'lib/airship/management/sinatra.rb', line 13 def show( = {}, &block) get "/:id", , &block end |
#update(options = {}, &block) ⇒ Object
21 22 23 |
# File 'lib/airship/management/sinatra.rb', line 21 def update( = {}, &block) post "/:id/update", , &block end |