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
- .base_uri ⇒ Object
-
.password ⇒ Object
Returns the value of attribute password.
-
.username ⇒ Object
Returns the value of attribute username.
Class Method Summary collapse
Class Attribute Details
permalink .base_uri ⇒ Object
49 50 51 |
# File 'lib/billogram.rb', line 49 def base_uri @base_uri ||= BASE_URI end |
permalink .password ⇒ Object
Returns the value of attribute password.
38 39 40 |
# File 'lib/billogram.rb', line 38 def password @password end |
permalink .username ⇒ Object
Returns the value of attribute username.
38 39 40 |
# File 'lib/billogram.rb', line 38 def username @username end |
Class Method Details
permalink .client ⇒ Object
[View source]
41 42 43 |
# File 'lib/billogram.rb', line 41 def client @client ||= Client.new(username, password, base_uri) end |
permalink .configure {|_self| ... } ⇒ Object
45 46 47 |
# File 'lib/billogram.rb', line 45 def configure yield self if block_given? end |