Sha256: 44b3f371ef7f2a2a6e2ef5d94c0e019beadfbc5cf94074ce7b2b6f4503583f9a
Contents?: true
Size: 1.7 KB
Versions: 3
Compression:
Stored size: 1.7 KB
Contents
# frozen_string_literal: true require 'logger' require 'active_support/core_ext/hash' require 'active_support/concern' require 'active_support/inflector' require 'hashie' require 'faraday' require 'faraday/mashify' require 'pipedrive/version' module Pipedrive extend self attr_accessor :api_token, :debug attr_writer :user_agent, :logger # ensures the setup only gets run once @_ran_once = false def reset! @logger = nil @_ran_once = false @user_agent = nil @api_token = nil end def user_agent @user_agent ||= "Pipedrive Ruby Client v#{::Pipedrive::VERSION}" end def setup yield self unless @_ran_once @_ran_once = true end def logger @logger ||= Logger.new($stdout) end reset! end require 'pipedrive/railties' if defined?(::Rails) # Core require 'pipedrive/base' require 'pipedrive/utils' require 'pipedrive/operations/create' require 'pipedrive/operations/read' require 'pipedrive/operations/update' require 'pipedrive/operations/delete' # Persons require 'pipedrive/person_field' require 'pipedrive/person' # Organizations require 'pipedrive/organization_field' require 'pipedrive/organization' # Filters require 'pipedrive/filter' # Products require 'pipedrive/product_field' require 'pipedrive/product' # Roles require 'pipedrive/role' # Stages require 'pipedrive/stage' # Goals require 'pipedrive/goal' # Activities require 'pipedrive/activity' require 'pipedrive/activity_type' # Deals require 'pipedrive/deal_field' require 'pipedrive/deal' # Lead require 'pipedrive/lead_label' require 'pipedrive/lead' # Files require 'pipedrive/file' # Notes require 'pipedrive/note' # Users require 'pipedrive/user' # Pipelines require 'pipedrive/pipeline'
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pipedrive_api_rb-1.0.2 | lib/pipedrive.rb |
pipedrive_api_rb-1.0.1 | lib/pipedrive.rb |
pipedrive_api_rb-1.0.0 | lib/pipedrive.rb |