Skip to content

Commit

Permalink
Updated to v0.0.2
Browse files Browse the repository at this point in the history
Added example usage to README
  • Loading branch information
abrom committed May 8, 2017
1 parent 10c2e63 commit d753110
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,17 @@ $ bundle

## Usage

TODO
```ruby
client = Sip2::Client.new(host: 'my.sip2.host.net', port: 6001)
patron =
client.connect do |connection|
if connection.login 'sip_username', 'sip_password'
connection.patron_information 'patron_username', 'patron_password'
end
end

puts 'Valid patron' if patron && patron.authenticated?
```


## Contributing
Expand Down
2 changes: 1 addition & 1 deletion lib/sip2/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Sip2
VERSION = '0.0.1'.freeze
VERSION = '0.0.2'.freeze
end

0 comments on commit d753110

Please sign in to comment.