Class: BestBuy::Offer

Inherits:
Object
  • Object
show all
Defined in:
lib/best_buy/models/offer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(init_params) ⇒ Offer

Returns a new instance of Offer.



7
8
9
10
11
12
13
14
15
16
# File 'lib/best_buy/models/offer.rb', line 7

def initialize(init_params)
  @content_notes = init_params[:content_notes]
  @end_date = init_params[:end_date]
  @id = init_params[:id]
  @offer_name = init_params[:offer_name]
  @start_date = init_params[:start_date]
  @text = init_params[:text]
  @type = init_params[:type]
  @url = init_params[:url]
end

Instance Attribute Details

#content_notesObject (readonly)

Returns the value of attribute content_notes.



5
6
7
# File 'lib/best_buy/models/offer.rb', line 5

def content_notes
  @content_notes
end

#end_dateObject (readonly)

Returns the value of attribute end_date.



5
6
7
# File 'lib/best_buy/models/offer.rb', line 5

def end_date
  @end_date
end

#idObject (readonly)

Returns the value of attribute id.



5
6
7
# File 'lib/best_buy/models/offer.rb', line 5

def id
  @id
end

#offer_nameObject (readonly)

Returns the value of attribute offer_name.



5
6
7
# File 'lib/best_buy/models/offer.rb', line 5

def offer_name
  @offer_name
end

#start_dateObject (readonly)

Returns the value of attribute start_date.



5
6
7
# File 'lib/best_buy/models/offer.rb', line 5

def start_date
  @start_date
end

#textObject (readonly)

Returns the value of attribute text.



5
6
7
# File 'lib/best_buy/models/offer.rb', line 5

def text
  @text
end

#typeObject (readonly)

Returns the value of attribute type.



5
6
7
# File 'lib/best_buy/models/offer.rb', line 5

def type
  @type
end

#urlObject (readonly)

Returns the value of attribute url.



5
6
7
# File 'lib/best_buy/models/offer.rb', line 5

def url
  @url
end