Class: CheckIssuing::Request

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/check_issuing/request.rb

Direct Known Subclasses

Client

Instance Method Summary collapse

Instance Method Details

#delete(path, options = {}) ⇒ Object



23
24
25
26
# File 'lib/check_issuing/request.rb', line 23

def delete(path, options={})
  set_auth(options)
  @response = self.class.delete(CheckIssuing.endpoint + path, options)
end

#get(path, options = {}) ⇒ Object



8
9
10
11
# File 'lib/check_issuing/request.rb', line 8

def get(path, options={})
  set_auth(options)
  @response = self.class.get(CheckIssuing.endpoint + path, options)
end

#parsed_responseObject



32
33
34
# File 'lib/check_issuing/request.rb', line 32

def parsed_response
  self.response.parsed_response if self.response.present?
end

#post(path, options = {}) ⇒ Object



13
14
15
16
# File 'lib/check_issuing/request.rb', line 13

def post(path, options={})
  set_auth(options)
  @response = self.class.post(CheckIssuing.endpoint + path, options)
end

#put(path, options = {}) ⇒ Object



18
19
20
21
# File 'lib/check_issuing/request.rb', line 18

def put(path, options={})
  set_auth(options)
  @response = self.class.put(CheckIssuing.endpoint + path, options)
end

#responseObject



28
29
30
# File 'lib/check_issuing/request.rb', line 28

def response
  @response
end