iframe.ly ruby client
Get http://iframe.ly in Ruby world!
Installation
Add this line to your application's Gemfile:
gem 'iframely'
And then execute:
$ bundle
Or install it yourself as:
$ gem install iframely
Usage
iframely = Iframely::Requester.new api_key: 'you_api_key'
iframely.get_iframely_json 'http://www.youtube.com/watch?v=wVVjOd_Ooys'
# returns iframely json
iframely.get_iframely_model 'http://www.youtube.com/watch?v=wVVjOd_Ooys'
# returns Iframely::Model from iframely json
iframely.get_oembed_json 'http://www.youtube.com/watch?v=wVVjOd_Ooys'
# returns oembed json
Contributing
- Fork it ( https://github.com/[my-github-username]/iframely/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request