A ruby wrapper for the vast.com listings api.
gem install vast_api
# initialize vast vast = @Vast.new('apikey','category') # both settings are optional # Set Category vast = vast.category('item_vehicle/bike') #chainable vast.category #retrives category # set params vast = vast.where("price"=>"1001-2000") # apply to self vast.where!("price"=>"1001-2000") # Get listings vast.listing # Get attributes vast.attributes # Get attributes of listings and visa versa vast.listing.attributes vast.attributes.listing # Get Categories vast.categories
Contributing to vast_api
Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
Fork the project
Start a feature/bugfix branch
Commit and push until you are happy with your contribution
Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
Copyright © 2011 Ryan Ong. See LICENSE.txt for further details.