Class: Billogram::Client

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
HTTParty
Defined in:
lib/billogram/client.rb

Overview

Constant Summary collapse

HEADERS =
{
  "Accept" => "application/json",
  "Content-Type" => "application/json"
}

Instance Method Summary collapse

Constructor Details

#initialize(username, password, base_uri = Billogram.base_url) ⇒ Client

Returns a new instance of Client.



17
18
19
20
# File 'lib/billogram/client.rb', line 17

def initialize(username, password, base_uri = Billogram.base_url)
  self.class.base_uri base_uri
  self.class.basic_auth username, password
end