Module: Restfulie::Client::Feature::Verb
- Defined in:
- lib/restfulie/client/feature/verb.rb
Instance Method Summary collapse
-
#delete ⇒ Object
DELETE HTTP verb without Error *
path: '/posts'
*headers: {'Accept' => '/', 'Content-Type' => 'application/atom+xml'}
. -
#delete! ⇒ Object
DELETE HTTP verb Error *
path: '/posts'
*headers: {'Accept' => '/', 'Content-Type' => 'application/atom+xml'}
. -
#get(params = {}) ⇒ Object
GET HTTP verb without Error *
path: '/posts'
*headers: {'Accept' => '/', 'Content-Type' => 'application/atom+xml'}
. -
#get!(params = {}) ⇒ Object
GET HTTP verb Error *
path: '/posts'
*headers: {'Accept' => '/', 'Content-Type' => 'application/atom+xml'}
. -
#head ⇒ Object
HEAD HTTP verb without Error *
path: '/posts'
*headers: {'Accept' => '/', 'Content-Type' => 'application/atom+xml'}
. -
#head! ⇒ Object
HEAD HTTP verb Error *
path: '/posts'
*headers: {'Accept' => '/', 'Content-Type' => 'application/atom+xml'}
. -
#patch(payload) ⇒ Object
PATCH HTTP verb without Error *
path: '/posts'
*payload: 'some text'
*headers: {'Accept' => '/', 'Content-Type' => 'application/atom+xml'}
. -
#patch!(payload) ⇒ Object
PATCH HTTP verb Error *
path: '/posts'
*payload: 'some text'
*headers: {'Accept' => '/', 'Content-Type' => 'application/atom+xml'}
. -
#post(payload, options = {:recipe => nil}) ⇒ Object
POST HTTP verb without Error *
path: '/posts'
*payload: 'some text'
*headers: {'Accept' => '/', 'Content-Type' => 'application/atom+xml'}
. -
#post!(payload, options = {:recipe => nil}) ⇒ Object
POST HTTP verb Error *
path: '/posts'
*payload: 'some text'
*headers: {'Accept' => '/', 'Content-Type' => 'application/atom+xml'}
. -
#put(payload) ⇒ Object
PUT HTTP verb without Error *
path: '/posts'
*payload: 'some text'
*headers: {'Accept' => '/', 'Content-Type' => 'application/atom+xml'}
. -
#put!(payload) ⇒ Object
PUT HTTP verb Error *
path: '/posts'
*payload: 'some text'
*headers: {'Accept' => '/', 'Content-Type' => 'application/atom+xml'}
.
Instance Method Details
#delete ⇒ Object
DELETE HTTP verb without Error
-
path: '/posts'
-
headers: {'Accept' => '/', 'Content-Type' => 'application/atom+xml'}
50 51 52 53 |
# File 'lib/restfulie/client/feature/verb.rb', line 50 def delete @verb = :delete request_flow end |
#delete! ⇒ Object
DELETE HTTP verb Error
-
path: '/posts'
-
headers: {'Accept' => '/', 'Content-Type' => 'application/atom+xml'}
101 102 103 104 |
# File 'lib/restfulie/client/feature/verb.rb', line 101 def delete! request :throw_error_request delete end |
#get(params = {}) ⇒ Object
GET HTTP verb without Error
-
path: '/posts'
-
headers: {'Accept' => '/', 'Content-Type' => 'application/atom+xml'}
6 7 8 9 10 |
# File 'lib/restfulie/client/feature/verb.rb', line 6 def get(params = {}) @verb = :get at query_string(params) request_flow end |
#get!(params = {}) ⇒ Object
GET HTTP verb Error
-
path: '/posts'
-
headers: {'Accept' => '/', 'Content-Type' => 'application/atom+xml'}
58 59 60 61 |
# File 'lib/restfulie/client/feature/verb.rb', line 58 def get!(params = {}) request :throw_error_request get params end |
#head ⇒ Object
HEAD HTTP verb without Error
-
path: '/posts'
-
headers: {'Accept' => '/', 'Content-Type' => 'application/atom+xml'}
15 16 17 18 |
# File 'lib/restfulie/client/feature/verb.rb', line 15 def head @verb = :head request_flow end |
#head! ⇒ Object
HEAD HTTP verb Error
-
path: '/posts'
-
headers: {'Accept' => '/', 'Content-Type' => 'application/atom+xml'}
66 67 68 69 |
# File 'lib/restfulie/client/feature/verb.rb', line 66 def head! request :throw_error_request head end |
#patch(payload) ⇒ Object
PATCH HTTP verb without Error
-
path: '/posts'
-
payload: 'some text'
-
headers: {'Accept' => '/', 'Content-Type' => 'application/atom+xml'}
33 34 35 36 |
# File 'lib/restfulie/client/feature/verb.rb', line 33 def patch(payload) @verb = :patch request_flow :body => payload end |
#patch!(payload) ⇒ Object
PATCH HTTP verb Error
-
path: '/posts'
-
payload: 'some text'
-
headers: {'Accept' => '/', 'Content-Type' => 'application/atom+xml'}
84 85 86 87 |
# File 'lib/restfulie/client/feature/verb.rb', line 84 def patch!(payload) request :throw_error_request patch payload end |
#post(payload, options = {:recipe => nil}) ⇒ Object
POST HTTP verb without Error
-
path: '/posts'
-
payload: 'some text'
-
headers: {'Accept' => '/', 'Content-Type' => 'application/atom+xml'}
24 25 26 27 |
# File 'lib/restfulie/client/feature/verb.rb', line 24 def post(payload, = {:recipe => nil}) @verb = :post request_flow :body => payload end |
#post!(payload, options = {:recipe => nil}) ⇒ Object
POST HTTP verb Error
-
path: '/posts'
-
payload: 'some text'
-
headers: {'Accept' => '/', 'Content-Type' => 'application/atom+xml'}
75 76 77 78 |
# File 'lib/restfulie/client/feature/verb.rb', line 75 def post!(payload, = {:recipe => nil}) request :throw_error_request post payload end |
#put(payload) ⇒ Object
PUT HTTP verb without Error
-
path: '/posts'
-
payload: 'some text'
-
headers: {'Accept' => '/', 'Content-Type' => 'application/atom+xml'}
42 43 44 45 |
# File 'lib/restfulie/client/feature/verb.rb', line 42 def put(payload) @verb = :put request_flow :body => payload end |
#put!(payload) ⇒ Object
PUT HTTP verb Error
-
path: '/posts'
-
payload: 'some text'
-
headers: {'Accept' => '/', 'Content-Type' => 'application/atom+xml'}
93 94 95 96 |
# File 'lib/restfulie/client/feature/verb.rb', line 93 def put!(payload) request :throw_error_request put payload end |