Class: ShopsavvyDataApi::TLDRReview
- Inherits:
-
Object
- Object
- ShopsavvyDataApi::TLDRReview
- Defined in:
- lib/shopsavvy_data_api/models.rb
Overview
TLDR product review
Instance Attribute Summary collapse
-
#bottom_line ⇒ Object
readonly
Returns the value of attribute bottom_line.
-
#cons ⇒ Object
readonly
Returns the value of attribute cons.
-
#headline ⇒ Object
readonly
Returns the value of attribute headline.
-
#pros ⇒ Object
readonly
Returns the value of attribute pros.
-
#scores ⇒ Object
readonly
Returns the value of attribute scores.
-
#slug ⇒ Object
readonly
Returns the value of attribute slug.
Instance Method Summary collapse
-
#initialize(data) ⇒ TLDRReview
constructor
A new instance of TLDRReview.
Constructor Details
#initialize(data) ⇒ TLDRReview
Returns a new instance of TLDRReview.
515 516 517 518 519 520 521 522 |
# File 'lib/shopsavvy_data_api/models.rb', line 515 def initialize(data) @slug = data["slug"] @headline = data["headline"] @pros = data["pros"] || [] @cons = data["cons"] || [] @bottom_line = data["bottom_line"] @scores = data["scores"] end |
Instance Attribute Details
#bottom_line ⇒ Object (readonly)
Returns the value of attribute bottom_line.
513 514 515 |
# File 'lib/shopsavvy_data_api/models.rb', line 513 def bottom_line @bottom_line end |
#cons ⇒ Object (readonly)
Returns the value of attribute cons.
513 514 515 |
# File 'lib/shopsavvy_data_api/models.rb', line 513 def cons @cons end |
#headline ⇒ Object (readonly)
Returns the value of attribute headline.
513 514 515 |
# File 'lib/shopsavvy_data_api/models.rb', line 513 def headline @headline end |
#pros ⇒ Object (readonly)
Returns the value of attribute pros.
513 514 515 |
# File 'lib/shopsavvy_data_api/models.rb', line 513 def pros @pros end |
#scores ⇒ Object (readonly)
Returns the value of attribute scores.
513 514 515 |
# File 'lib/shopsavvy_data_api/models.rb', line 513 def scores @scores end |
#slug ⇒ Object (readonly)
Returns the value of attribute slug.
513 514 515 |
# File 'lib/shopsavvy_data_api/models.rb', line 513 def slug @slug end |