Sha256: 67c0c910af84ea806733bf4728bc6032ca9d5b2702d1da8dcdfca6c683acbaaa

Contents?: true

Size: 486 Bytes

Versions: 4

Compression:

Stored size: 486 Bytes

Contents

module BambooId
  module Urls
    class ApiKeyUrl
      def initialize(subdomain:, id_token:)
        self.subdomain = subdomain
        self.id_token  = id_token
      end

      def to_s
        "https://api.bamboohr.com/api/gateway.php/#{subdomain}/v1/oidcLogin"
      end

      def params
        {
          id_token: id_token,
          applicationKey: Configuration.application_key
        }
      end

      private

      attr_accessor :subdomain, :id_token
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bamboo-id-0.1.3 lib/bamboo_id/urls/api_key_url.rb
bamboo-id-0.1.2 lib/bamboo_id/urls/api_key_url.rb
bamboo-id-0.1.1 lib/bamboo_id/urls/api_key_url.rb
bamboo-id-0.1.0 lib/bamboo_id/urls/api_key_url.rb