Module: Billogram

Defined in:
lib/billogram.rb,
lib/billogram/client.rb,
lib/billogram/version.rb,
lib/billogram/resource.rb,
lib/billogram/resources/invoice.rb

Defined Under Namespace

Classes: Client, Invoice, Resource

Constant Summary collapse

CONFIG_KEYS =
[:api_key, :api_user, :base_url].freeze
VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.clientObject



20
21
22
# File 'lib/billogram.rb', line 20

def client
  @client ||= Client.new(api_user, api_key, base_url)
end

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Billogram)

    the object that the method was called on



15
16
17
18
# File 'lib/billogram.rb', line 15

def configure
  yield self
  self
end