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/callback.rb,
lib/billogram/resources/customer.rb,
lib/billogram/resources/bookkeeping.rb,
lib/billogram/resources/regional_sweden.rb,
lib/billogram/resources/delivery_address.rb

Defined Under Namespace

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

Constant Summary collapse

VERSION =
"0.3.3"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.base_uriObject

Returns the value of attribute base_uri.



22
23
24
# File 'lib/billogram.rb', line 22

def base_uri
  @base_uri
end

.passwordObject

Returns the value of attribute password.



22
23
24
# File 'lib/billogram.rb', line 22

def password
  @password
end

.usernameObject

Returns the value of attribute username.



22
23
24
# File 'lib/billogram.rb', line 22

def username
  @username
end

Class Method Details

.clientObject



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

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



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

def configure
  yield self if block_given?
end