Skip to content
This repository has been archived by the owner. It is now read-only.
Ruby wrapper for Bilvision api. http://www.bilvision.se/
Ruby
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
spec
.gitignore
Gemfile
MIT-LICENSE
README.md
Rakefile
bilvision.gemspec

README.md

Bilvision

Ruby wrapper for Bilvision api. www.bilvision.se

Installation

Add this line to your application's Gemfile:

gem 'bilvision'

And then execute:

$ bundle

Or install it yourself as:

$ gem install bilvision

Usage

Bilvision.configure do |config|
  config.user_id  = 'username'
  config.password = '<secret>'
end

# Initialize a new request
client = Bilvision::Request.new('AAA111')
# - or
client = Bilvision.request('AAA111')

client.general
client.technical
client.owners

# We can also fetch all results
data = client.all

# Override global configuration at instance level
client = Bilvision::Request.new('AAA111',
  user_id:  'uname',
  password: '<new_secret>'
)

Contributing

  1. Fork it ( http://github.com/sandelius/bilvision/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
You can’t perform that action at this time.