Class: Croatia::Config
- Inherits:
-
Object
- Object
- Croatia::Config
- Defined in:
- lib/croatia/config.rb
Constant Summary collapse
- DEFAULT_TAX_RATES =
{ value_added_tax: { standard: 0.25, lower_rate: 0.13, exempt: 0.0, zero_rated: 0.0, outside_scope: 0.0, reverse_charge: 0.0 }, consumption_tax: Hash.new(0.0), other: Hash.new(0.0) }
- DEFAULT_FISCALIZATION =
{}
Instance Attribute Summary collapse
-
#fiscalization ⇒ Object
Returns the value of attribute fiscalization.
-
#tax_rates ⇒ Object
Returns the value of attribute tax_rates.
Instance Method Summary collapse
-
#initialize(**options) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(**options) ⇒ Config
Returns a new instance of Config.
20 21 22 23 |
# File 'lib/croatia/config.rb', line 20 def initialize(**) self.tax_rates = .delete(:tax_rates) { deep_dup(DEFAULT_TAX_RATES) } self.fiscalization = .delete(:fiscalization) { deep_dup(DEFAULT_FISCALIZATION) } end |
Instance Attribute Details
#fiscalization ⇒ Object
Returns the value of attribute fiscalization.
18 19 20 |
# File 'lib/croatia/config.rb', line 18 def fiscalization @fiscalization end |
#tax_rates ⇒ Object
Returns the value of attribute tax_rates.
18 19 20 |
# File 'lib/croatia/config.rb', line 18 def tax_rates @tax_rates end |