Ruby wrapper around the Wordy API
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
.travis.yml
Gemfile
Gemfile.lock
README.markdown
Rakefile
VERSION
rWordy.gemspec
wordy-ruby.gemspec
wordy.gemspec

README.markdown

Build Status

Installation

gem install wordy-ruby

Usage

require 'rubygems'
require 'wordy'

# if you're using rails, put this in an initializer file
Wordy.configure do |c|
   c.api_key   = ENV['WORDY_API_KEY']
   c.username  = ENV['WORDY_USERNAME']
   c.env       = 'production'
end

if Wordy::Account.balance > 0
  job = Wordy::Job.create(1, 'Text I want to proofread', 'An optional title')
  # See Account.languages to see the list of available languages and their ids
  job.pay!
  puts "Your text will be ready at: #{job.delivery_date}"
end

By default the Wordy environment is production, if you want to use the staging environment, set the 'env' attribute to 'staging'