Class: OldBill::Service
- Inherits:
-
Object
- Object
- OldBill::Service
- Includes:
- HTTParty
- Defined in:
- lib/oldbill/service.rb
Instance Method Summary collapse
- #get(path, params = {}) ⇒ Object
-
#initialize(server, api_version, username, password, logging = false) ⇒ Service
constructor
api not used is in server.
Constructor Details
#initialize(server, api_version, username, password, logging = false) ⇒ Service
api not used is in server
8 9 10 11 12 |
# File 'lib/oldbill/service.rb', line 8 def initialize(server, api_version, username, password, logging = false) self.class.base_uri server self.class.send(:debug_output) if logging self.class.basic_auth username, password end |
Instance Method Details
#get(path, params = {}) ⇒ Object
14 15 16 |
# File 'lib/oldbill/service.rb', line 14 def get(path, params = {}) perform_request(:get, path, params) end |