Sha256: 521708a2a2c080a1fea9f3ffb0c9df96c81ae06842414becdcb4f8abe5c3bc77
Contents?: true
Size: 527 Bytes
Versions: 1
Compression:
Stored size: 527 Bytes
Contents
module PipedriveApi class Config attr_accessor :domain, :api_token, :content_type, :version, :extension, :headers, :params def initialize @extension = '.json'.freeze @content_type ||= 'application/json'.freeze @version ||= '1'.freeze end def headers { 'Accept' => @content_type } end def params { 'api_token' => @api_token } end end def self.config @config ||= Config.new end def self.configure(&block) yield(config) if block_given? end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
easy_pipedrive-0.0.1 | lib/pipedrive_api/config.rb |