Sha256: 1057761bab4bc66b549891ae0f8ab6e00cd1af1a2e83bd827d8a43d25b0e4da9

Contents?: true

Size: 692 Bytes

Versions: 2

Compression:

Stored size: 692 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://api.targetdata-smart.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

2 entries across 2 versions & 1 rubygems

Version Path
targetdata-0.4.1 lib/targetdata.rb
targetdata-0.4.0 lib/targetdata.rb