Sha256: 8e9f36583d75135400a0ceb834e6f95c3e4876bd70042caf86890f7e6971b088

Contents?: true

Size: 541 Bytes

Versions: 1

Compression:

Stored size: 541 Bytes

Contents

module Zaim
  module Configuration

    OptionKeys = [ :consumer_key, :consumer_secret, :oauth_token, :oauth_token_secret ]

    attr_writer :consumer_secret, :oauth_token, :oauth_token_secret
    attr_accessor :consumer_key

    def configure
      yield self
      self
    end

    def credentials
      {
        :consumer_key    => @consumer_key,
        :consumer_secret => @consumer_secret,
        :token           => @oauth_token,
        :token_secret    => @oauth_token_secret,
      }
    end
    private :credentials

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zaim-0.0.1 lib/zaim/configuration.rb