Class: LivingSocialApi::DailyDeal

Inherits:
Object
  • Object
show all
Defined in:
lib/livingsocial/daily_deal.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_priceObject

Returns the value of attribute deal_price.



6
7
8
# File 'lib/livingsocial/daily_deal.rb', line 6

def deal_price
  @deal_price
end

#descriptionObject

Returns the value of attribute description.



6
7
8
# File 'lib/livingsocial/daily_deal.rb', line 6

def description
  @description
end

#imageObject

Returns the value of attribute image.



6
7
8
# File 'lib/livingsocial/daily_deal.rb', line 6

def image
  @image
end

#original_priceObject

Returns the value of attribute original_price.



6
7
8
# File 'lib/livingsocial/daily_deal.rb', line 6

def original_price
  @original_price
end

#titleObject

Returns the value of attribute title.



6
7
8
# File 'lib/livingsocial/daily_deal.rb', line 6

def title
  @title
end

#urlObject

Returns the value of attribute url.



6
7
8
# File 'lib/livingsocial/daily_deal.rb', line 6

def url
  @url
end