Sha256: 18767bc522c687e392c18a13192cb03b9e5018699481424ee058a10c33e9b04b

Contents?: true

Size: 863 Bytes

Versions: 2

Compression:

Stored size: 863 Bytes

Contents

# frozen_string_literal: true

require 'portfolio_manager/rest/utils'

module PortfolioManager
  module REST
    ##
    # Customer services
    # @see https://portfoliomanager.energystar.gov/webservices/home/api/account
    module Customer
      include PortfolioManager::REST::Utils

      ##
      # Returns a list of customers that you are connected to.
      #
      # @see https://portfoliomanager.energystar.gov/webservices/home/api/account/customerList/get
      def customer_list
        perform_get_request('/customer/list')
      end

      ##
      # Returns general account information for a specific customer that you are connected to.
      #
      # https://portfoliomanager.energystar.gov/webservices/home/api/account/customer/get
      def customer(customer_id)
        perform_get_request("/customer/#{customer_id}")
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
portfolio_manager-0.5.0 lib/portfolio_manager/rest/customer.rb
portfolio_manager-0.4.0 lib/portfolio_manager/rest/customer.rb