Module: Billogram

Defined in:
lib/billogram.rb,
lib/billogram/error.rb,
lib/billogram/client.rb,
lib/billogram/version.rb,
lib/billogram/resource.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/address.rb,
lib/billogram/resources/contact.rb,
lib/billogram/resources/invoice.rb,
lib/billogram/resources/customer.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/delivery_address.rb
more...

Defined Under Namespace

Classes: Address, Bookkeeping, Callbacks, Client, Contact, Customer, Data, DeliveryAddress, DetailedSums, Error, Event, Info, Invoice, Item, RegionalSweden, RelationBuilder, Resource

Constant Summary collapse

VERSION =
"0.3.6"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.base_uriObject

Returns the value of attribute base_uri.


25
26
27
# File 'lib/billogram.rb', line 25

def base_uri
  @base_uri
end

.passwordObject

Returns the value of attribute password.


25
26
27
# File 'lib/billogram.rb', line 25

def password
  @password
end

.usernameObject

Returns the value of attribute username.


25
26
27
# File 'lib/billogram.rb', line 25

def username
  @username
end

Class Method Details

.clientObject

[View source]

27
28
29
# File 'lib/billogram.rb', line 27

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]

31
32
33
# File 'lib/billogram.rb', line 31

def configure
  yield self if block_given?
end