0.0
No commit activity in last 3 years
No release in over 3 years
lets goo
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.15
~> 5.0
~> 10.0

Runtime

>= 0
 Project Readme

Benzinator

Installation

Add this line to your application's Gemfile: This is a sample gem to wrap an imaginary car buying application API. It is meant to accompany a blog post written for Engine Yard and Quick Left.

Installation

If this gem actually talked to a service, you could use it in your Ruby project. To do so, you would add this line to your application's Gemfile:

gem 'benzinator'

And then execute:

$ bundle

Or install it yourself as:

$ gem install benzinator

Usage

To get access to the cars for sale on Ben's Benzes, you would do this:

require 'benzinator'

# Find all the cars
cars = Benzinator::Car.all

# Find a car by id
honda = Benzinator::Car.find(68)

# Access the car's attributes
honda.id
#=> 68

honda.year
#=>1996

honda.color
#=> "Blue"

Enjoy!