class ONIX::Price
Public Instance Methods
discount()
click to toggle source
FIXME discount_coded != discount @return [DiscountCoded]
# File lib/onix/price.rb, line 51 def discount self.discount_codeds.first end
from_date()
click to toggle source
price from date @return [Date]
# File lib/onix/price.rb, line 59 def from_date dt = @price_dates.from_date.first if dt dt.date end end
including_tax?()
click to toggle source
does the price include taxes ? @return [Boolean]
# File lib/onix/price.rb, line 77 def including_tax? if self.type.human =~ /IncludingTax/ true else false end end
until_date()
click to toggle source
price until date @return [Date]
# File lib/onix/price.rb, line 68 def until_date dt = @price_dates.until_date.first if dt dt.date end end