README.md in apple_models-1.0.4 vs README.md in apple_models-2.0.0
- old
+ new
@@ -1,10 +1,10 @@
# 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 name 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.
+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 hash!
+__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:
@@ -19,10 +19,15 @@
$ gem install apple_models
## Usage
```ruby
-AppleModels.find('iPad2,7') # returns "iPad Mini"
+device = AppleModels.find('iPad2,7')
+
+device.identifier # "iPad2,7"
+device.model # "iPad"
+device.version # "Mini (Global)"
+device.friendly_name # "iPad Mini (Global)"
```
## Contributing
1. Fork it