class ONIX::ONIX21::Price
Public Instance Methods
from_date()
click to toggle source
# File lib/onix/onix21.rb, line 152 def from_date if @price_effective_from Date.strptime(@price_effective_from, "%Y%m%d") end end
including_tax?()
click to toggle source
# File lib/onix/onix21.rb, line 144 def including_tax? if @price_type_code.human =~ /IncludingTax/ true else false end end
tax()
click to toggle source
# File lib/onix/onix21.rb, line 168 def tax nil end
territory()
click to toggle source
# File lib/onix/onix21.rb, line 164 def territory Territory.new(@country_codes) end
until_date()
click to toggle source
# File lib/onix/onix21.rb, line 158 def until_date if @price_effective_until Date.strptime(@price_effective_until, "%Y%m%d") end end