Class: BestBuy::Offer
- Inherits:
-
Object
- Object
- BestBuy::Offer
- Defined in:
- lib/best_buy/models/offer.rb
Instance Attribute Summary collapse
-
#content_notes ⇒ Object
readonly
Returns the value of attribute content_notes.
-
#end_date ⇒ Object
readonly
Returns the value of attribute end_date.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#offer_name ⇒ Object
readonly
Returns the value of attribute offer_name.
-
#start_date ⇒ Object
readonly
Returns the value of attribute start_date.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(init_params) ⇒ Offer
constructor
A new instance of Offer.
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_notes ⇒ Object (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_date ⇒ Object (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 |
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/best_buy/models/offer.rb', line 5 def id @id end |
#offer_name ⇒ Object (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_date ⇒ Object (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 |
#text ⇒ Object (readonly)
Returns the value of attribute text.
5 6 7 |
# File 'lib/best_buy/models/offer.rb', line 5 def text @text end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
5 6 7 |
# File 'lib/best_buy/models/offer.rb', line 5 def type @type end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
5 6 7 |
# File 'lib/best_buy/models/offer.rb', line 5 def url @url end |