Class: Stew::Store::AppOfferSale
Overview
An app offer that is a sale
Instance Method Summary
collapse
Methods inherited from AppOffer
create, #initialize, #name
Instance Method Details
#description ⇒ Object
18
19
20
|
# File 'lib/stew/store/app_offer_sale.rb', line 18
def description
nil
end
|
#price ⇒ Object
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_price ⇒ Object
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
14
15
16
|
# File 'lib/stew/store/app_offer_sale.rb', line 14
def sale?
true
end
|