Class: ShopsavvyDataApi::TLDRReview

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

Overview

TLDR product review

Instance Attribute Summary collapse

Instance Method Summary collapse

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_lineObject (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

#consObject (readonly)

Returns the value of attribute cons.



513
514
515
# File 'lib/shopsavvy_data_api/models.rb', line 513

def cons
  @cons
end

#headlineObject (readonly)

Returns the value of attribute headline.



513
514
515
# File 'lib/shopsavvy_data_api/models.rb', line 513

def headline
  @headline
end

#prosObject (readonly)

Returns the value of attribute pros.



513
514
515
# File 'lib/shopsavvy_data_api/models.rb', line 513

def pros
  @pros
end

#scoresObject (readonly)

Returns the value of attribute scores.



513
514
515
# File 'lib/shopsavvy_data_api/models.rb', line 513

def scores
  @scores
end

#slugObject (readonly)

Returns the value of attribute slug.



513
514
515
# File 'lib/shopsavvy_data_api/models.rb', line 513

def slug
  @slug
end