mirror of
https://github.com/internetee/registry.git
synced 2025-06-04 11:47:30 +02:00
12 lines
282 B
Ruby
12 lines
282 B
Ruby
class Registry
|
|
include ActiveModel::Model
|
|
|
|
attr_accessor :vat_rate, :vat_country
|
|
|
|
def self.current
|
|
vat_rate = Setting.registry_vat_prc.to_d * 100
|
|
vat_country = Country.new(Setting.registry_country_code)
|
|
|
|
new(vat_rate: vat_rate, vat_country: vat_country)
|
|
end
|
|
end
|