Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
lobbyist-ruby / lib / lobbyist / v2 / account_manager_metrics.rb
Size: Mime:
module Lobbyist
  module V2

    class AccountManagerMetrics < Lobbyist::V2::Base
      attr_accessor :all_count, :active_count, :inactive_count, :terminated_count, :pending_termination_count
      attr_accessor :declined_count, :skipped_payment_count, :direct_connect_issues_count, :first_call_count
      attr_accessor :calendared_today_count, :not_calendared_count, :account_managers

      def self.company_filter_counts(id, params = {})
        create_from_response(get("/v2/account-manager-metrics/#{id}/company-filter-counts.json", params))
      end

      def self.exception_filter_counts(id, params = {})
        create_from_response(get("/v2/account-manager-metrics/#{id}/exception-filter-counts.json", params))
      end

      def self.company_status_counts(params = {})
        create_collection_from_response(get("/v2/account-manager-metrics/company-status-counts", params))
      end

      def self.revenue_by_account_manager
        create_collection_from_response(get("/v2/account-manager-metrics/revenue-by-account-manager.json"))
      end

      def self.activity_by_account_manager(params = {})
        create_collection_from_response(get("/v2/account-manager-metrics/activity-by-account-manager", params))
      end

      def self.member_services_totals(params = {})
        create_from_response(get("/v2/account-manager-metrics/member-services-totals", params))
      end
    end

  end
end