Sha256: e9f65962c7959c26a709242c0bec8ac1020dbc4ad9bc451892c2f6e5cb429041

Contents?: true

Size: 1021 Bytes

Versions: 7

Compression:

Stored size: 1021 Bytes

Contents

module Troo
  module API
    class OAuthSettings
      include Virtus.value_object

      values do
        attribute :scheme,           Symbol,  default: :header
        attribute :http_method,      Symbol,  default: :get
        attribute :timestamp,        Integer, default: Time.now.to_i
        attribute :signature_method, String,  default: 'HMAC-SHA1'

        attribute :nonce,
                  String,
                  default: SecureRandom.hex

        attribute :scope,
                  String,
                  default: 'read,write,account'

        attribute :uri, String

        attribute :request_token_path,
                  String,
                  default: 'https://trello.com/1/OAuthGetRequestToken'

        attribute :authorize_path,
                  String,
                  default: 'https://trello.com/1/OAuthAuthorizeToken'

        attribute :access_token_path,
                  String,
                  default: 'https://trello.com/1/OAuthGetAccessToken'
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
troo-0.0.15 lib/troo/api/oauth_settings.rb
troo-0.0.14 lib/troo/api/oauth_settings.rb
troo-0.0.13 lib/troo/api/oauth_settings.rb
troo-0.0.12 lib/troo/api/oauth_settings.rb
troo-0.0.11 lib/troo/api/oauth_settings.rb
troo-0.0.10 lib/troo/api/oauth_settings.rb
troo-0.0.9 lib/troo/api/oauth_settings.rb