shin1ohno/jani-from_json

View on GitHub
README.md

Summary

Maintainability
Test Coverage
[![Build Status](https://travis-ci.org/shin1ohno/jani-from_json.svg)](https://travis-ci.org/shin1ohno/jani-from_json) [![Code Climate](https://codeclimate.com/github/shin1ohno/jani-from_json/badges/gpa.svg)](https://codeclimate.com/github/shin1ohno/jani-from_json) [![Test Coverage](https://codeclimate.com/github/shin1ohno/jani-from_json/badges/coverage.svg)](https://codeclimate.com/github/shin1ohno/jani-from_json)

# Jani::FromJson

Convert JSON data into jani structured movie object.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'jani-from_json'
```

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install jani-from_json

## Usage

```ruby
require "jani/from_json"

movie = Jani::FromJson.to_movie(json_data) #-> movie object

movie.strips #-> array of strip
movie.tracking_events #-> array of tracking events
#... see Jani::FromJson::Movie
```

## Contributing

1. Fork it ( https://github.com/[my-github-username]/jani-from_json/fork )
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 a new Pull Request