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/edi.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/payment_settings.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/electricity_collection.rb,
lib/billogram/resources/international_bank_account.rb

Defined Under Namespace

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

Constant Summary collapse

BASE_URI =
'https://billogram.com/api/v2/'
VERSION =
'0.6.6'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.base_uriObject



54
55
56
# File 'lib/billogram.rb', line 54

def base_uri
  @base_uri ||= BASE_URI
end

.passwordObject

Returns the value of attribute password.



43
44
45
# File 'lib/billogram.rb', line 43

def password
  @password
end

.usernameObject

Returns the value of attribute username.



43
44
45
# File 'lib/billogram.rb', line 43

def username
  @username
end

Class Method Details

.clientObject



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

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



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

def configure
  yield self if block_given?
end