/readypulse

Ruby wrapper for Readypulse API

Primary LanguageRubyMIT LicenseMIT

version Dependency Status Build Status Test Coverage Code Climate

Readypulse

Ruby wraper for Readypulse API

Installation

Add this line to your application's Gemfile:

gem 'readypulse'

And then execute:

$ bundle

Or install it yourself as:

$ gem install readypulse

Usage

album = Album.new(id: 1)   # => #<Album @id="1">
album.name                 # => "My Very First Curation"
album.description          # => "This is my first curation on the ReadyPulse production site."

images = album.images      # => #<ImageCollection>

image = album.images.first # => #<Image>
image.types                # => ["email", "tile", "square-tile", "mobile-tile", "large", "original"]

image['mobile-tile']       # => #<ImageType @type="mobile-tile">
image['mobile-tile'].url   # => 'https://cloudinary-a.akamaihd.net/readypulse/image/upload/c_fill,fl_progressive,h_250,q_75,w_300/v1418764365/ig_3542844_630741923525326235_3542844.jpg'

Contributing

  1. Fork it ( https://github.com/[my-github-username]/readypulse/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