jdguzman/rallio

View on GitHub
lib/rallio/base.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Rallio
  class Base
    include HTTParty
    include Virtus.model

    base_uri 'https://app.rallio.com/api/v1'

    # The credentials that can be used in the headers of any request requiring
    # app level credentials
    #
    # @return [Hash] credentials hash
    def self.app_credentials
      {
        'X-Application-ID' => Rallio.application_id,
        'X-Application-Secret' => Rallio.application_secret
      }
    end
  end
end