Module: Airship::Management::Sinatra::ClassMethods

Defined in:
lib/airship/management/sinatra.rb

Instance Method Summary collapse

Instance Method Details

#destroy(options = {}, &block) ⇒ Object



25
26
27
# File 'lib/airship/management/sinatra.rb', line 25

def destroy(options = {}, &block)
  delete "/:id/destroy", options, &block
end

#edit(options = {}, &block) ⇒ Object



17
18
19
# File 'lib/airship/management/sinatra.rb', line 17

def edit(options = {}, &block)
  get "/:id/edit", options, &block
end

#index(options = {}, &block) ⇒ Object



9
10
11
# File 'lib/airship/management/sinatra.rb', line 9

def index(options = {}, &block)
  get "/", options, &block
end

#show(options = {}, &block) ⇒ Object



13
14
15
# File 'lib/airship/management/sinatra.rb', line 13

def show(options = {}, &block)
  get "/:id", options, &block
end

#update(options = {}, &block) ⇒ Object



21
22
23
# File 'lib/airship/management/sinatra.rb', line 21

def update(options = {}, &block)
  post "/:id/update", options, &block
end