Module: Billogram

Defined in:
lib/billogram.rb,
lib/billogram/error.rb,
lib/billogram/client.rb,
lib/billogram/request.rb,
lib/billogram/version.rb,
lib/billogram/endpoint.rb,
lib/billogram/relation.rb,
lib/billogram/resource.rb,
lib/billogram/resources/tax.rb,
lib/billogram/resources/data.rb,
lib/billogram/resources/info.rb,
lib/billogram/resources/item.rb,
lib/billogram/resources/event.rb,
lib/billogram/relation_builder.rb,
lib/billogram/resources/report.rb,
lib/billogram/resources/address.rb,
lib/billogram/resources/contact.rb,
lib/billogram/resources/invoice.rb,
lib/billogram/resources/payment.rb,
lib/billogram/resources/customer.rb,
lib/billogram/resources/logotype.rb,
lib/billogram/resources/settings.rb,
lib/billogram/resources/callbacks.rb,
lib/billogram/resources/bookkeeping.rb,
lib/billogram/resources/detailed_sums.rb,
lib/billogram/resources/regional_sweden.rb,
lib/billogram/resources/invoice_defaults.rb,
lib/billogram/resources/automatic_reminder.rb,
lib/billogram/resources/bookkeeping_object.rb,
lib/billogram/resources/automatic_collection.rb,
lib/billogram/resources/domestic_bank_account.rb,
lib/billogram/resources/international_bank_account.rb
more...

Defined Under Namespace

Modules: Endpoint Classes: Address, AutomaticCollection, AutomaticReminder, Bookkeeping, BookkeepingObject, Callbacks, Client, Contact, Customer, Data, DetailedSums, DomesticBankAccount, Error, Event, Info, InternationalBankAccount, Invoice, InvoiceDefaults, Item, Logotype, Payment, RegionalSweden, Relation, RelationBuilder, Report, Request, Resource, Settings, Tax

Constant Summary collapse

BASE_URI =
"https://billogram.com/api/v2/"
VERSION =
"0.5.4"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.base_uriObject


49
50
51
# File 'lib/billogram.rb', line 49

def base_uri
  @base_uri ||= BASE_URI
end

.passwordObject

Returns the value of attribute password.


38
39
40
# File 'lib/billogram.rb', line 38

def password
  @password
end

.usernameObject

Returns the value of attribute username.


38
39
40
# File 'lib/billogram.rb', line 38

def username
  @username
end

Class Method Details

.clientObject

[View source]

41
42
43
# File 'lib/billogram.rb', line 41

def client
  @client ||= Client.new(username, password, base_uri)
end

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

Yields:

  • (_self)

Yield Parameters:

  • _self (Billogram)

    the object that the method was called on

[View source]

45
46
47
# File 'lib/billogram.rb', line 45

def configure
  yield self if block_given?
end