Class: LivingSocialApi::DailyDeal
- Inherits:
-
Object
- Object
- LivingSocialApi::DailyDeal
- Defined in:
- lib/livingsocial/daily_deal.rb
Instance Attribute Summary collapse
-
#deal_price ⇒ Object
Returns the value of attribute deal_price.
-
#description ⇒ Object
Returns the value of attribute description.
-
#image ⇒ Object
Returns the value of attribute image.
-
#original_price ⇒ Object
Returns the value of attribute original_price.
-
#title ⇒ Object
Returns the value of attribute title.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(image, title, description, original_price, deal_price, url) ⇒ DailyDeal
constructor
A new instance of DailyDeal.
Constructor Details
#initialize(image, title, description, original_price, deal_price, url) ⇒ DailyDeal
Returns a new instance of DailyDeal.
8 9 10 11 12 13 14 15 |
# File 'lib/livingsocial/daily_deal.rb', line 8 def initialize(image, title, description, original_price, deal_price, url) self.image = image self.title = title self.description = description self.original_price = original_price self.deal_price = deal_price self.url = url end |
Instance Attribute Details
#deal_price ⇒ Object
Returns the value of attribute deal_price.
6 7 8 |
# File 'lib/livingsocial/daily_deal.rb', line 6 def deal_price @deal_price end |
#description ⇒ Object
Returns the value of attribute description.
6 7 8 |
# File 'lib/livingsocial/daily_deal.rb', line 6 def description @description end |
#image ⇒ Object
Returns the value of attribute image.
6 7 8 |
# File 'lib/livingsocial/daily_deal.rb', line 6 def image @image end |
#original_price ⇒ Object
Returns the value of attribute original_price.
6 7 8 |
# File 'lib/livingsocial/daily_deal.rb', line 6 def original_price @original_price end |
#title ⇒ Object
Returns the value of attribute title.
6 7 8 |
# File 'lib/livingsocial/daily_deal.rb', line 6 def title @title end |
#url ⇒ Object
Returns the value of attribute url.
6 7 8 |
# File 'lib/livingsocial/daily_deal.rb', line 6 def url @url end |