Skip to content

Commit

Permalink
Attempt to make README cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
anlek authored and bcurren committed Feb 13, 2014
1 parent 0057ef0 commit 22ef54d
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README
Expand Up @@ -22,26 +22,26 @@ FreshBooks.rb is a Ruby interface to the FreshBooks API. It exposes easy-to-use

Initialization:

FreshBooks::Base.establish_connection('sample.freshbooks.com', 'mytoken')
FreshBooks::Base.establish_connection('sample.freshbooks.com', 'mytoken')

Updating a client name:

clients = FreshBooks::Client.list
client = clients[0]
client.first_name = 'Suzy'
client.update
clients = FreshBooks::Client.list
client = clients[0]
client.first_name = 'Suzy'
client.update

Updating an invoice:

invoice = FreshBooks::Invoice.get(4)
invoice.lines[0].quantity += 1
invoice.update
invoice = FreshBooks::Invoice.get(4)
invoice.lines[0].quantity += 1
invoice.update

Creating a new item

item = FreshBooks::Item.new
item.name = 'A sample item'
item.create
item = FreshBooks::Item.new
item.name = 'A sample item'
item.create

## License

Expand Down

0 comments on commit 22ef54d

Please sign in to comment.