Project

reckless

0.0
No commit activity in last 3 years
No release in over 3 years
Ruby client to Chicago's records store Reckless.com http://reckless.com
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 2.13
~> 0.7

Runtime

~> 0.7
~> 0
~> 1.8
~> 1.5
 Project Readme

Reckless

Ruby client to Chicago's records store Reckless.com

Build Status Code Climate

Installation

Add it to your Gemfile:

gem "reckless"

Or install it manually:

gem install reckless

Usage

See examples:

require "reckless"

# Search for records
search = Reckless.search("Nirvana")
search = Reckless.recent_arrivals

# Get search details
search.url           # http://www.reckless.com/index.phpkeywords=&format=&cond=&store=&is_search=true&srch=Search
search.total_pages   # 15
search.total_results # 450
search.page          # 1
search.results       # returns an array of results

Each search result is a simple hash:

{
  :artist    => "13th Floor Elevators",
  :title     => "Easter Everywhere (180g, Reissue)",
  :label     => "International Artist",
  :price     => 11.99,
  :type      => "New LP",
  :condition => "Good Condition",
  :location  => "Milwaukee Ave"
}

Or you can access it as an object:

item = Reckless.search("Nirvana").results.first

item.artist
item.title
item.label
item.price
item.type
item.condition
item.location

Search options

  • page - Specify a page to fetch. Defaults to 1
  • format - Choose record format: LP, CD, DVD. Defaults to LP
  • location - Choose location: Broadway, Milwaukee or Loop. Does not have a default.
  • condition - Specify record condition: U - Used, N - New.

Testing

Execute test suite:

bundle exec rake test

License

The MIT License (MIT)

Copyright (c) 2014 Dan Sosedoff, dan.sosedoff@gmail.com