Class: Xolphin::Api::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/xolphin/api/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(username, password, test = false) ⇒ Client

Returns a new instance of Client.



4
5
6
# File 'lib/xolphin/api/client.rb', line 4

def initialize(username, password, test = false)
  @http = Xolphin::Api::Http.new(username, password, test: test)
end

Instance Method Details

#certificateObject



12
13
14
# File 'lib/xolphin/api/client.rb', line 12

def certificate
  Xolphin::Api::Endpoint::Certificate.new(@http)
end

#invoiceObject



20
21
22
# File 'lib/xolphin/api/client.rb', line 20

def invoice
  Xolphin::Api::Endpoint::Invoice.new(@http)
end

#requestObject



8
9
10
# File 'lib/xolphin/api/client.rb', line 8

def request
  Xolphin::Api::Endpoint::Request.new(@http)
end

#supportObject



16
17
18
# File 'lib/xolphin/api/client.rb', line 16

def support
  Xolphin::Api::Endpoint::Support.new(@http)
end