Sha256: 1fa7c5517f79d5129bfaab8247361b8c28f940252d0f924e83b4ce51138cb336

Contents?: true

Size: 489 Bytes

Versions: 4

Compression:

Stored size: 489 Bytes

Contents

module Bcx
  module Launchpad
    class OAuth < Rapidash::Client
      method :oauth

      extension :json
      encode_request_with :json

      raise_errors

      resource :authorization, class_name: "Bcx::Resources::Authorization"

      def initialize(options = {})
        options[:site]   ||= "https://launchpad.37signals.com"
        options[:uid]    ||= options[:client_id]
        options[:secret] ||= options[:client_secret]

        super(options)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bcx-1.1.0 lib/bcx/launchpad/oauth.rb
bcx-1.0.0 lib/bcx/launchpad/oauth.rb
bcx-0.4.0 lib/bcx/launchpad/oauth.rb
bcx-0.3.0 lib/bcx/launchpad/oauth.rb