Sha256: 4e484d468499a94fea841a5dd1a1cd2312ed71c6b6ace3594dd07d0424d1d1b9

Contents?: true

Size: 687 Bytes

Versions: 4

Compression:

Stored size: 687 Bytes

Contents

require "targetdata/version"
require "http"

require_relative "targetdata/configuration"
require_relative "targetdata/errors/unauthorized"
require_relative "targetdata/errors/person_not_found"
require_relative "targetdata/entities/person"
require_relative "targetdata/api/auth"
require_relative "targetdata/api/requester"
require_relative "targetdata/api/pf"

module Targetdata
  BASE_URL = 'https://targetdatasmart.com/api'
  
  class << self
    attr_writer :configuration
  end

  def self.configuration
    @configuration ||= Configuration.new
  end

  def self.configure
    yield(configuration)
  end

  def self.person_by_cpf cpf
    Targetdata::Api::Pf.new(cpf).person
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
targetdata-0.3.1 lib/targetdata.rb
targetdata-0.3.0 lib/targetdata.rb
targetdata-0.2.1 lib/targetdata.rb
targetdata-0.2.0 lib/targetdata.rb