Module: Restfulie::Client::Feature::Verb

Defined in:
lib/restfulie/client/feature/verb.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) delete

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

- (Object) delete!

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

- (Object) get(params = {})

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

- (Object) get!(params = {})

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

- (Object) head

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

- (Object) head!

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

- (Object) patch(payload)

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

- (Object) patch!(payload)

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

- (Object) post(payload, options = {:recipe => nil})

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, options = {:recipe => nil})
  @verb = :post
  request_flow :body => payload
end

- (Object) post!(payload, options = {:recipe => nil})

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, options = {:recipe => nil})
  request :throw_error_request
  post payload
end

- (Object) put(payload)

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

- (Object) put!(payload)

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