Module: Airship::Management::Padrino::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

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



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

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

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



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

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

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



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

def index(options = {}, &block)
  route 'GET', "", options, &block
end

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



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

def show(options = {}, &block)
  route 'GET', ":id", options, &block
end

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



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

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