Sha256: 526d67af3dd0983634a09b625465ffe79e08c5ed2602fd0099090534d9ebaf89

Contents?: true

Size: 1.15 KB

Versions: 2

Compression:

Stored size: 1.15 KB

Contents

# Apple Models [![Build Status](https://travis-ci.org/tboyko/apple_models.png?branch=master)](http://travis-ci.org/tboyko/apple_models) [![Code Climate](https://codeclimate.com/github/tboyko/apple_models.png)](https://codeclimate.com/github/tboyko/apple_models)

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

```ruby
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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
apple_models-2.1.2 README.md
apple_models-2.1.1 README.md