Sha256: e6e69e2e22877b35b63328365d267e3b9f5dd265c286be4c67176d08c3f7f5ea

Contents?: true

Size: 565 Bytes

Versions: 2

Compression:

Stored size: 565 Bytes

Contents

require 'rubygems'
require 'date'
require 'csv'
require 'active_model'
require 'active_support/core_ext/object/blank'
require 'active_support/core_ext/module/delegation'


%w[version configuration helpers alphabet codes italian_citizen fiscal_code].each do |filename|
  require "codice_fiscale/#{filename}"
end


module CodiceFiscale
  def self.config
    @config ||= Configuration.new
  end

  def self.calculate params
    citizen = ItalianCitizen.new params
    raise ArgumentError.new("#{citizen.errors}") unless citizen.valid?
    citizen.fiscal_code
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
codice-fiscale-0.0.8 lib/codice_fiscale.rb
codice-fiscale-0.0.7 lib/codice_fiscale.rb