Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Apple model name lookup based on model id (apple product code)
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
.rspec
.travis.yml
Gemfile
LICENSE.txt
README.md
Rakefile
apple_models.gemspec

README.md

Apple Models Build Status Code Climate

Retrieve the model and version of an Apple product based on the model id. Note: the model id is also referred to as the product code and the product id.

Special Note: At this time, only iOS product lookups are available. Feel free to fork and expand the catalog!

Installation

Add this line to your application's Gemfile:

gem 'apple_models'

And then execute:

$ bundle

Or install it yourself as:

$ gem install apple_models

Usage

device = AppleModels.find('iPad2,7')

device.identifier    # "iPad2,7"
device.model         # "iPad"
device.version       # "Mini"
device.friendly_name # "iPad Mini"
device.extended      # "(Global)"

Contributing

  1. Fork it
  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
Something went wrong with that request. Please try again.