Module: IncomeTax

Extended by:
Helpers
Defined in:
lib/income_tax.rb,
lib/income_tax/rate.rb,
lib/income_tax/models.rb,
lib/income_tax/factory.rb,
lib/income_tax/helpers.rb,
lib/income_tax/version.rb,
lib/income_tax/register.rb,
lib/income_tax/countries.rb,
lib/income_tax/countries/chad.rb,
lib/income_tax/countries/cuba.rb,
lib/income_tax/countries/fiji.rb,
lib/income_tax/countries/guam.rb,
lib/income_tax/countries/iran.rb,
lib/income_tax/countries/iraq.rb,
lib/income_tax/countries/laos.rb,
lib/income_tax/countries/mali.rb,
lib/income_tax/countries/niue.rb,
lib/income_tax/countries/oman.rb,
lib/income_tax/countries/peru.rb,
lib/income_tax/countries/togo.rb,
lib/income_tax/models/generic.rb,
lib/income_tax/countries/aland.rb,
lib/income_tax/countries/aruba.rb,
lib/income_tax/countries/benin.rb,
lib/income_tax/countries/chile.rb,
lib/income_tax/countries/china.rb,
lib/income_tax/countries/congo.rb,
lib/income_tax/countries/egypt.rb,
lib/income_tax/countries/gabon.rb,
lib/income_tax/countries/ghana.rb,
lib/income_tax/countries/haiti.rb,
lib/income_tax/countries/india.rb,
lib/income_tax/countries/italy.rb,
lib/income_tax/countries/japan.rb,
lib/income_tax/countries/kenya.rb,
lib/income_tax/countries/libya.rb,
lib/income_tax/countries/macao.rb,
lib/income_tax/countries/malta.rb,
lib/income_tax/countries/nauru.rb,
lib/income_tax/countries/nepal.rb,
lib/income_tax/countries/niger.rb,
lib/income_tax/countries/palau.rb,
lib/income_tax/countries/qatar.rb,
lib/income_tax/countries/samoa.rb,
lib/income_tax/countries/spain.rb,
lib/income_tax/countries/sudan.rb,
lib/income_tax/countries/syria.rb,
lib/income_tax/countries/tonga.rb,
lib/income_tax/countries/yemen.rb,
lib/income_tax/models/delegate.rb,
lib/income_tax/models/no_taxes.rb,
lib/income_tax/countries/angola.rb,
lib/income_tax/countries/belize.rb,
lib/income_tax/countries/bhutan.rb,
lib/income_tax/countries/brazil.rb,
lib/income_tax/countries/brunei.rb,
lib/income_tax/countries/canada.rb,
lib/income_tax/countries/cyprus.rb,
lib/income_tax/countries/france.rb,
lib/income_tax/countries/gambia.rb,
lib/income_tax/countries/greece.rb,
lib/income_tax/countries/guinea.rb,
lib/income_tax/countries/guyana.rb,
lib/income_tax/countries/israel.rb,
lib/income_tax/countries/jersey.rb,
lib/income_tax/countries/jordan.rb,
lib/income_tax/countries/kosovo.rb,
lib/income_tax/countries/kuwait.rb,
lib/income_tax/countries/latvia.rb,
lib/income_tax/countries/malawi.rb,
lib/income_tax/countries/mexico.rb,
lib/income_tax/countries/monaco.rb,
lib/income_tax/countries/norway.rb,
lib/income_tax/countries/panama.rb,
lib/income_tax/countries/poland.rb,
lib/income_tax/countries/russia.rb,
lib/income_tax/countries/rwanda.rb,
lib/income_tax/countries/serbia.rb,
lib/income_tax/countries/sweden.rb,
lib/income_tax/countries/taiwan.rb,
lib/income_tax/countries/turkey.rb,
lib/income_tax/countries/tuvalu.rb,
lib/income_tax/countries/uganda.rb,
lib/income_tax/countries/zambia.rb,
lib/income_tax/countries/albania.rb,
lib/income_tax/countries/algeria.rb,
lib/income_tax/countries/andorra.rb,
lib/income_tax/countries/armenia.rb,
lib/income_tax/countries/austria.rb,
lib/income_tax/countries/bahamas.rb,
lib/income_tax/countries/bahrain.rb,
lib/income_tax/countries/belarus.rb,
lib/income_tax/countries/belgium.rb,
lib/income_tax/countries/bermuda.rb,
lib/income_tax/countries/bolivia.rb,
lib/income_tax/countries/burundi.rb,
lib/income_tax/countries/comoros.rb,
lib/income_tax/countries/croatia.rb,
lib/income_tax/countries/curacao.rb,
lib/income_tax/countries/denmark.rb,
lib/income_tax/countries/ecuador.rb,
lib/income_tax/countries/eritrea.rb,
lib/income_tax/countries/estonia.rb,
lib/income_tax/countries/finland.rb,
lib/income_tax/countries/georgia.rb,
lib/income_tax/countries/germany.rb,
lib/income_tax/countries/grenada.rb,
lib/income_tax/countries/hungary.rb,
lib/income_tax/countries/iceland.rb,
lib/income_tax/countries/ireland.rb,
lib/income_tax/countries/jamaica.rb,
lib/income_tax/countries/lebanon.rb,
lib/income_tax/countries/lesotho.rb,
lib/income_tax/countries/liberia.rb,
lib/income_tax/countries/mayotte.rb,
lib/income_tax/countries/moldova.rb,
lib/income_tax/countries/morocco.rb,
lib/income_tax/countries/myanmar.rb,
lib/income_tax/countries/namibia.rb,
lib/income_tax/countries/nigeria.rb,
lib/income_tax/countries/reunion.rb,
lib/income_tax/countries/romania.rb,
lib/income_tax/countries/senegal.rb,
lib/income_tax/countries/somalia.rb,
lib/income_tax/countries/tokelau.rb,
lib/income_tax/countries/tunisia.rb,
lib/income_tax/countries/ukraine.rb,
lib/income_tax/countries/uruguay.rb,
lib/income_tax/countries/vanuatu.rb,
lib/income_tax/countries/vatican.rb,
lib/income_tax/countries/vietnam.rb,
lib/income_tax/models/fixed_rate.rb,
lib/income_tax/countries/anguilla.rb,
lib/income_tax/countries/barbados.rb,
lib/income_tax/countries/botswana.rb,
lib/income_tax/countries/bulgaria.rb,
lib/income_tax/countries/cambodia.rb,
lib/income_tax/countries/cameroon.rb,
lib/income_tax/countries/colombia.rb,
lib/income_tax/countries/djibouti.rb,
lib/income_tax/countries/dominica.rb,
lib/income_tax/countries/ethiopia.rb,
lib/income_tax/countries/guernsey.rb,
lib/income_tax/countries/honduras.rb,
lib/income_tax/countries/kiribati.rb,
lib/income_tax/countries/malaysia.rb,
lib/income_tax/countries/maldives.rb,
lib/income_tax/countries/mongolia.rb,
lib/income_tax/countries/pakistan.rb,
lib/income_tax/countries/paraguay.rb,
lib/income_tax/countries/pitcairn.rb,
lib/income_tax/countries/portugal.rb,
lib/income_tax/countries/slovakia.rb,
lib/income_tax/countries/slovenia.rb,
lib/income_tax/countries/suriname.rb,
lib/income_tax/countries/tanzania.rb,
lib/income_tax/countries/thailand.rb,
lib/income_tax/countries/zimbabwe.rb,
lib/income_tax/models/progressive.rb,
lib/income_tax/countries/argentina.rb,
lib/income_tax/countries/australia.rb,
lib/income_tax/countries/gibraltar.rb,
lib/income_tax/countries/greenland.rb,
lib/income_tax/countries/guatemala.rb,
lib/income_tax/countries/hong_kong.rb,
lib/income_tax/countries/indonesia.rb,
lib/income_tax/countries/lithuania.rb,
lib/income_tax/countries/macedonia.rb,
lib/income_tax/countries/mauritius.rb,
lib/income_tax/countries/nicaragua.rb,
lib/income_tax/countries/singapore.rb,
lib/income_tax/countries/sri_lanka.rb,
lib/income_tax/countries/swaziland.rb,
lib/income_tax/countries/venezuela.rb,
lib/income_tax/countries/azerbaijan.rb,
lib/income_tax/countries/bangladesh.rb,
lib/income_tax/countries/cape_verde.rb,
lib/income_tax/countries/costa_rica.rb,
lib/income_tax/countries/guadeloupe.rb,
lib/income_tax/countries/kazakhstan.rb,
lib/income_tax/countries/kyrgyzstan.rb,
lib/income_tax/countries/luxembourg.rb,
lib/income_tax/countries/madagascar.rb,
lib/income_tax/countries/martinique.rb,
lib/income_tax/countries/mauritania.rb,
lib/income_tax/countries/micronesia.rb,
lib/income_tax/countries/montenegro.rb,
lib/income_tax/countries/montserrat.rb,
lib/income_tax/countries/mozambique.rb,
lib/income_tax/countries/san_marino.rb,
lib/income_tax/countries/seychelles.rb,
lib/income_tax/countries/tajikistan.rb,
lib/income_tax/countries/uzbekistan.rb,
lib/income_tax/countries/afghanistan.rb,
lib/income_tax/countries/el_salvador.rb,
lib/income_tax/countries/isle_of_man.rb,
lib/income_tax/countries/ivory_coast.rb,
lib/income_tax/countries/netherlands.rb,
lib/income_tax/countries/new_zealand.rb,
lib/income_tax/countries/north_korea.rb,
lib/income_tax/countries/philippines.rb,
lib/income_tax/countries/puerto_rico.rb,
lib/income_tax/countries/saint_lucia.rb,
lib/income_tax/countries/south_korea.rb,
lib/income_tax/countries/south_sudan.rb,
lib/income_tax/countries/switzerland.rb,
lib/income_tax/countries/timor_leste.rb,
lib/income_tax/countries/burkina_faso.rb,
lib/income_tax/countries/canada/yukon.rb,
lib/income_tax/countries/cook_islands.rb,
lib/income_tax/countries/saint_helena.rb,
lib/income_tax/countries/saint_martin.rb,
lib/income_tax/countries/saudi_arabia.rb,
lib/income_tax/countries/sierra_leone.rb,
lib/income_tax/countries/sint_maarten.rb,
lib/income_tax/countries/south_africa.rb,
lib/income_tax/countries/turkmenistan.rb,
lib/income_tax/models/not_implemented.rb,
lib/income_tax/countries/bouvet_island.rb,
lib/income_tax/countries/canada/quebec.rb,
lib/income_tax/countries/faroe_islands.rb,
lib/income_tax/countries/french_guiana.rb,
lib/income_tax/countries/guinea_bissau.rb,
lib/income_tax/countries/liechtenstein.rb,
lib/income_tax/countries/new_caledonia.rb,
lib/income_tax/countries/united_states.rb,
lib/income_tax/countries/american_samoa.rb,
lib/income_tax/countries/canada/alberta.rb,
lib/income_tax/countries/canada/federal.rb,
lib/income_tax/countries/canada/nunavut.rb,
lib/income_tax/countries/canada/ontario.rb,
lib/income_tax/countries/cayman_islands.rb,
lib/income_tax/countries/congo_republic.rb,
lib/income_tax/countries/czech_republic.rb,
lib/income_tax/countries/norfolk_island.rb,
lib/income_tax/countries/united_kingdom.rb,
lib/income_tax/countries/western_sahara.rb,
lib/income_tax/countries/canada/manitoba.rb,
lib/income_tax/countries/solomon_islands.rb,
lib/income_tax/countries/switzerland/uri.rb,
lib/income_tax/countries/switzerland/zug.rb,
lib/income_tax/countries/christmas_island.rb,
lib/income_tax/countries/falkland_islands.rb,
lib/income_tax/countries/french_polynesia.rb,
lib/income_tax/countries/marshall_islands.rb,
lib/income_tax/countries/papua_new_guinea.rb,
lib/income_tax/countries/saint_barthelemy.rb,
lib/income_tax/countries/switzerland/bern.rb,
lib/income_tax/countries/switzerland/jura.rb,
lib/income_tax/countries/switzerland/vaud.rb,
lib/income_tax/countries/united_states/dc.rb,
lib/income_tax/countries/equatorial_guinea.rb,
lib/income_tax/countries/virgin_islands_us.rb,
lib/income_tax/countries/wallis_and_futuna.rb,
lib/income_tax/countries/canada/nova_scotia.rb,
lib/income_tax/countries/dominican_republic.rb,
lib/income_tax/countries/switzerland/aargau.rb,
lib/income_tax/countries/switzerland/canton.rb,
lib/income_tax/countries/switzerland/geneva.rb,
lib/income_tax/countries/switzerland/glarus.rb,
lib/income_tax/countries/switzerland/schwyz.rb,
lib/income_tax/countries/switzerland/ticino.rb,
lib/income_tax/countries/switzerland/valais.rb,
lib/income_tax/countries/switzerland/zurich.rb,
lib/income_tax/countries/united_states/iowa.rb,
lib/income_tax/countries/united_states/ohio.rb,
lib/income_tax/countries/united_states/utah.rb,
lib/income_tax/countries/antigua_and_barbuda.rb,
lib/income_tax/countries/canada/saskatchewan.rb,
lib/income_tax/countries/switzerland/federal.rb,
lib/income_tax/countries/switzerland/grisons.rb,
lib/income_tax/countries/switzerland/lucerne.rb,
lib/income_tax/countries/switzerland/thurgau.rb,
lib/income_tax/countries/trinidad_and_tobago.rb,
lib/income_tax/countries/united_states/idaho.rb,
lib/income_tax/countries/united_states/maine.rb,
lib/income_tax/countries/united_states/state.rb,
lib/income_tax/countries/united_states/texas.rb,
lib/income_tax/countries/canada/new_brunswick.rb,
lib/income_tax/countries/netherlands_antilles.rb,
lib/income_tax/countries/switzerland/fribourg.rb,
lib/income_tax/countries/switzerland/obwalden.rb,
lib/income_tax/countries/united_arab_emirates.rb,
lib/income_tax/countries/united_states/alaska.rb,
lib/income_tax/countries/united_states/hawaii.rb,
lib/income_tax/countries/united_states/kansas.rb,
lib/income_tax/countries/united_states/nevada.rb,
lib/income_tax/countries/united_states/oregon.rb,
lib/income_tax/countries/caribbean_netherlands.rb,
lib/income_tax/countries/cocos_keeling_islands.rb,
lib/income_tax/countries/palestinian_territory.rb,
lib/income_tax/countries/saint_kitts_and_nevis.rb,
lib/income_tax/countries/sao_tome_and_principe.rb,
lib/income_tax/countries/switzerland/neuchatel.rb,
lib/income_tax/countries/switzerland/nidwalden.rb,
lib/income_tax/countries/switzerland/solothurn.rb,
lib/income_tax/countries/switzerland/st_gallen.rb,
lib/income_tax/countries/united_states/alabama.rb,
lib/income_tax/countries/united_states/arizona.rb,
lib/income_tax/countries/united_states/federal.rb,
lib/income_tax/countries/united_states/florida.rb,
lib/income_tax/countries/united_states/georgia.rb,
lib/income_tax/countries/united_states/indiana.rb,
lib/income_tax/countries/united_states/montana.rb,
lib/income_tax/countries/united_states/vermont.rb,
lib/income_tax/countries/united_states/wyoming.rb,
lib/income_tax/countries/bosnia_and_herzegovina.rb,
lib/income_tax/countries/svalbard_and_jan_mayen.rb,
lib/income_tax/countries/switzerland/basel_city.rb,
lib/income_tax/countries/switzerland/basel_land.rb,
lib/income_tax/countries/united_states/arkansas.rb,
lib/income_tax/countries/united_states/colorado.rb,
lib/income_tax/countries/united_states/delaware.rb,
lib/income_tax/countries/united_states/illinois.rb,
lib/income_tax/countries/united_states/kentucky.rb,
lib/income_tax/countries/united_states/maryland.rb,
lib/income_tax/countries/united_states/michigan.rb,
lib/income_tax/countries/united_states/missouri.rb,
lib/income_tax/countries/united_states/nebraska.rb,
lib/income_tax/countries/united_states/new_york.rb,
lib/income_tax/countries/united_states/oklahoma.rb,
lib/income_tax/countries/united_states/virginia.rb,
lib/income_tax/countries/virgin_islands_british.rb,
lib/income_tax/countries/canada/british_columbia.rb,
lib/income_tax/countries/united_states/louisiana.rb,
lib/income_tax/countries/united_states/minnesota.rb,
lib/income_tax/countries/united_states/tennessee.rb,
lib/income_tax/countries/united_states/wisconsin.rb,
lib/income_tax/countries/central_african_republic.rb,
lib/income_tax/countries/northern_mariana_islands.rb,
lib/income_tax/countries/switzerland/schaffhausen.rb,
lib/income_tax/countries/turks_and_caicos_islands.rb,
lib/income_tax/countries/united_states/california.rb,
lib/income_tax/countries/united_states/new_jersey.rb,
lib/income_tax/countries/united_states/new_mexico.rb,
lib/income_tax/countries/united_states/washington.rb,
lib/income_tax/countries/saint_pierre_and_miquelon.rb,
lib/income_tax/countries/united_states/connecticut.rb,
lib/income_tax/countries/united_states/mississippi.rb,
lib/income_tax/countries/heard_and_mcdonald_islands.rb,
lib/income_tax/countries/united_states/north_dakota.rb,
lib/income_tax/countries/united_states/pennsylvania.rb,
lib/income_tax/countries/united_states/rhode_island.rb,
lib/income_tax/countries/united_states/south_dakota.rb,
lib/income_tax/countries/canada/prince_edward_island.rb,
lib/income_tax/countries/french_southern_territories.rb,
lib/income_tax/countries/switzerland/appenzell_inner.rb,
lib/income_tax/countries/switzerland/appenzell_outer.rb,
lib/income_tax/countries/united_states/massachusetts.rb,
lib/income_tax/countries/united_states/new_hampshire.rb,
lib/income_tax/countries/united_states/west_virginia.rb,
lib/income_tax/countries/canada/northwest_territories.rb,
lib/income_tax/countries/united_states/north_carolina.rb,
lib/income_tax/countries/united_states/south_carolina.rb,
lib/income_tax/countries/british_indian_ocean_territory.rb,
lib/income_tax/countries/canada/newfoundland_and_labrador.rb,
lib/income_tax/countries/saint_vincent_and_the_grenedines.rb,
lib/income_tax/countries/united_states_minor_outlying_islands.rb,
lib/income_tax/countries/south_georgia_and_the_south_sandwich_islands.rb

Defined Under Namespace

Modules: Countries, Factory, Helpers, Models Classes: Rate, Register

Constant Summary collapse

CountryRegister =
Register.new('country')
VERSION =
"0.3.2"

Class Method Summary collapse

Class Method Details

.new(*args) ⇒ Object



14
15
16
# File 'lib/income_tax.rb', line 14

def self.new(*args)
  Factory.generate(*args)
end