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
-
#auth ⇒ Object
readonly
Returns the value of attribute auth.
Class Method Summary collapse
- .customer_get(id) ⇒ Object
- .customers ⇒ Object
- .invoice ⇒ Object
- .new(email, api_key) ⇒ Object
- .recurring ⇒ Object
Instance Attribute Details
#auth ⇒ Object (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 |
.customers ⇒ Object
19 20 21 |
# File 'lib/fastbill.rb', line 19 def customers c = Customer.new(@auth).customers 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 |