class JSONVAT::Period
Public Class Methods
new(country, attributes)
click to toggle source
# File lib/json_vat/period.rb, line 6 def initialize(country, attributes) @country, @attributes = country, attributes end
Public Instance Methods
effective_from()
click to toggle source
# File lib/json_vat/period.rb, line 10 def effective_from @effective_from ||= Date.parse(@attributes['effective_from']) end
rates()
click to toggle source
# File lib/json_vat/period.rb, line 14 def rates @attributes['rates'] || {} end