Class: Stew::Store::AppOfferSale

Inherits:
AppOffer
  • Object
show all
Defined in:
lib/stew/store/app_offer_sale.rb

Overview

An app offer that is a sale

Instance Method Summary collapse

Methods inherited from AppOffer

create, #initialize, #name

Constructor Details

This class inherits a constructor from Stew::Store::AppOffer

Instance Method Details

#descriptionObject



18
19
20
# File 'lib/stew/store/app_offer_sale.rb', line 18

def description
  nil
end

#priceObject



6
7
8
# File 'lib/stew/store/app_offer_sale.rb', line 6

def price
  Stew.money @node.at_css('div.discount_final_price').content.gsub(/[\n\t\r\s]/, '')
end

#regular_priceObject



10
11
12
# File 'lib/stew/store/app_offer_sale.rb', line 10

def regular_price
  Stew.money @node.at_css('div.discount_original_price').content.gsub(/[\n\t\r\s]/, '')
end

#sale?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/stew/store/app_offer_sale.rb', line 14

def sale?
  true
end