module Billogram # https://github.com/lendai/billogram-api-clients/tree/master/ruby class Client include HTTParty extend Forwardable HEADERS = { "Accept" => "application/json", "Content-Type" => "application/json" } headers HEADERS format :json delegate [:get, :post, :put, :delete] => self def initialize(username, password, base_uri = Billogram.base_url) self.class.base_uri base_uri self.class.basic_auth username, password end end end