Module: Buxfer

Defined in:
lib/buxfer/base.rb,
lib/buxfer.rb,
lib/buxfer/tag.rb,
lib/buxfer/report.rb,
lib/buxfer/account.rb

Overview

The Buxfer API methods can be called on the Buxfer module after calling the #auth method. See Buxfer::Base for more information on each API call.

Defined Under Namespace

Classes: Account, Base, Report, Response, Tag

Class Method Summary collapse

Class Method Details

.auth(username, password) ⇒ Object

Specify the authentication details for connecting to Buxfer



5
6
7
8
9
# File 'lib/buxfer/base.rb', line 5

def self.auth(username, password)
  @username = username
  @password = password
  @connection = nil
end

.method_missing(method, *args) ⇒ Object

:nodoc:



11
12
13
14
15
16
17
# File 'lib/buxfer/base.rb', line 11

def self.method_missing(method, *args) #:nodoc:
  if connection.respond_to?(method)
    connection.send(method, *args)
  else
    super
  end
end