Module: Stir::Endpoints::ClassMethods

Defined in:
lib/stir/rest/endpoints.rb

Instance Method Summary collapse

Instance Method Details

#delete(name, &block) ⇒ Object



34
35
36
# File 'lib/stir/rest/endpoints.rb', line 34

def delete(name, &block)
  endpoint(name, :delete, &block)
end

#get(name, &block) ⇒ Object



18
19
20
# File 'lib/stir/rest/endpoints.rb', line 18

def get(name, &block)
  endpoint(name, :get, &block)
end

#head(name, &block) ⇒ Object



30
31
32
# File 'lib/stir/rest/endpoints.rb', line 30

def head(name, &block)
  endpoint(name, :head, &block)
end

#patch(name, &block) ⇒ Object



38
39
40
# File 'lib/stir/rest/endpoints.rb', line 38

def patch(name, &block)
  endpoint(name, :patch, &block)
end

#post(name, &block) ⇒ Object



26
27
28
# File 'lib/stir/rest/endpoints.rb', line 26

def post(name, &block)
  endpoint(name, :post, &block)
end

#put(name, &block) ⇒ Object



22
23
24
# File 'lib/stir/rest/endpoints.rb', line 22

def put(name, &block)
  endpoint(name, :put, &block)
end