Module: Fastbill

Extended by:
HTTParty
Defined in:
lib/fastbill.rb,
lib/fastbill/version.rb

Constant Summary collapse

VERSION =
"0.1.0"

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#authObject (readonly)

Returns the value of attribute auth.



11
12
13
# File 'lib/fastbill.rb', line 11

def auth
  @auth
end

Class Method Details

.customer_get(id) ⇒ Object



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

def customer_get(id)
  Customer.new(@auth).get(id)
end

.customersObject



19
20
21
# File 'lib/fastbill.rb', line 19

def customers
  c = Customer.new(@auth).customers
end

.invoiceObject



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

def invoice
  Invoice.new(@auth)
end

.new(email, api_key) ⇒ Object



15
16
17
18
# File 'lib/fastbill.rb', line 15

def new(email, api_key)
  @auth = {:username => email, :password => api_key}
  self
end

.recurringObject



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

def recurring
  Recurring.new(@auth)
end