Module: Fakturoid::Api::Base

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



6
7
8
# File 'lib/fakturoid/api/base.rb', line 6

def client
  @client
end

Instance Method Details

#initialize(client) ⇒ Object



8
9
10
# File 'lib/fakturoid/api/base.rb', line 8

def initialize(client)
  @client = client
end

#perform_request(method, path, params = {}) ⇒ Object



12
13
14
15
# File 'lib/fakturoid/api/base.rb', line 12

def perform_request(method, path, params = {})
  raw_response = client.perform_request(method, path, params)
  Response.new(raw_response, self.class, method)
end