Sha256: 285b989eaff480c98cc4390b81fc2411db6730ef27a9d5bdde125c11324dd67d

Contents?: true

Size: 681 Bytes

Versions: 2

Compression:

Stored size: 681 Bytes

Contents

require 'portfolio_manager/rest/request'

module PortfolioManager
  module REST
    ##
    # Utilities used throughout REST Client
    module Utils
      private

      ##
      # @param [String] path
      # @param [Hash] options
      def perform_get_request(path, options = {})
        perform_request(:get, path, options)
      end

      ##
      # @param [Symbol, String] request_method
      # @param [String] path
      # @param [Hash] options
      def perform_request(request_method, path, options = {})
        PortfolioManager::REST::Request.new(
          self,
          request_method,
          path,
          options
        ).perform
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
portfolio_manager-0.2.0 lib/portfolio_manager/rest/utils.rb
portfolio_manager-0.1.0 lib/portfolio_manager/rest/utils.rb