Sha256: e162bd55ba0374c47e8640eccc4b28bb1f43ba59cb006388681ba46e029e6714

Contents?: true

Size: 533 Bytes

Versions: 11

Compression:

Stored size: 533 Bytes

Contents

module Wordnik

  class Configuration

    # Wordnik credentials
    attr_accessor :api_key
    attr_accessor :username
    attr_accessor :password
    
    # TODO: Steal all the auth stuff from the old gem!
    attr_accessor :auth_token
    attr_accessor :user_id
    
    # Response format can be :json (default) or :xml
    attr_accessor :response_format
    
    # The URL of the API server
    attr_accessor :base_uri

    def initialize
      @response_format = :json
      @base_uri = 'api.wordnik.com/v4'
    end

  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
wordnik-0.4.7 lib/wordnik/configuration.rb
wordnik-0.4.6 lib/wordnik/configuration.rb
wordnik-0.4.5 lib/wordnik/configuration.rb
wordnik-0.4.4 lib/wordnik/configuration.rb
wordnik-0.4.3 lib/wordnik/configuration.rb
wordnik-0.4.2 lib/wordnik/configuration.rb
wordnik-0.4.1 lib/wordnik/configuration.rb
wordnik-0.4.0 lib/wordnik/configuration.rb
wordnik-0.3.9 lib/wordnik/configuration.rb
wordnik-0.3.8 lib/wordnik/configuration.rb
wordnik-0.3.7 lib/wordnik/configuration.rb