Class: Coneco::ReviewItem
- Inherits:
-
Object
- Object
- Coneco::ReviewItem
- Includes:
- InitHelper
- Defined in:
- lib/coneco/client.rb
Instance Attribute Summary collapse
-
#author_url ⇒ Object
Returns the value of attribute author_url.
-
#bookmark_count ⇒ Object
Returns the value of attribute bookmark_count.
-
#bookmark_user_list_url ⇒ Object
Returns the value of attribute bookmark_user_list_url.
-
#cons ⇒ Object
Returns the value of attribute cons.
-
#created ⇒ Object
Returns the value of attribute created.
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#overall_rating ⇒ Object
Returns the value of attribute overall_rating.
-
#pros ⇒ Object
Returns the value of attribute pros.
-
#purchase ⇒ Object
Returns the value of attribute purchase.
-
#ratings ⇒ Object
Returns the value of attribute ratings.
-
#review_count ⇒ Object
Returns the value of attribute review_count.
-
#review_list_url ⇒ Object
Returns the value of attribute review_list_url.
-
#summary ⇒ Object
Returns the value of attribute summary.
-
#url ⇒ Object
Returns the value of attribute url.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Instance Method Summary collapse
-
#initialize(h) ⇒ ReviewItem
constructor
A new instance of ReviewItem.
Methods included from InitHelper
Constructor Details
#initialize(h) ⇒ ReviewItem
Returns a new instance of ReviewItem.
135 136 137 138 139 |
# File 'lib/coneco/client.rb', line 135 def initialize(h) populate(h) @ratings.map! {|i| Rating.new(i) } if @ratings @purchase = Purchase.new(@purchase) if @purchase end |
Instance Attribute Details
#author_url ⇒ Object
Returns the value of attribute author_url.
131 132 133 |
# File 'lib/coneco/client.rb', line 131 def @author_url end |
#bookmark_count ⇒ Object
Returns the value of attribute bookmark_count.
131 132 133 |
# File 'lib/coneco/client.rb', line 131 def bookmark_count @bookmark_count end |
#bookmark_user_list_url ⇒ Object
Returns the value of attribute bookmark_user_list_url.
131 132 133 |
# File 'lib/coneco/client.rb', line 131 def bookmark_user_list_url @bookmark_user_list_url end |
#cons ⇒ Object
Returns the value of attribute cons.
131 132 133 |
# File 'lib/coneco/client.rb', line 131 def cons @cons end |
#created ⇒ Object
Returns the value of attribute created.
131 132 133 |
# File 'lib/coneco/client.rb', line 131 def created @created end |
#description ⇒ Object
Returns the value of attribute description.
131 132 133 |
# File 'lib/coneco/client.rb', line 131 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
131 132 133 |
# File 'lib/coneco/client.rb', line 131 def id @id end |
#overall_rating ⇒ Object
Returns the value of attribute overall_rating.
131 132 133 |
# File 'lib/coneco/client.rb', line 131 def @overall_rating end |
#pros ⇒ Object
Returns the value of attribute pros.
131 132 133 |
# File 'lib/coneco/client.rb', line 131 def pros @pros end |
#purchase ⇒ Object
Returns the value of attribute purchase.
131 132 133 |
# File 'lib/coneco/client.rb', line 131 def purchase @purchase end |
#ratings ⇒ Object
Returns the value of attribute ratings.
131 132 133 |
# File 'lib/coneco/client.rb', line 131 def @ratings end |
#review_count ⇒ Object
Returns the value of attribute review_count.
131 132 133 |
# File 'lib/coneco/client.rb', line 131 def review_count @review_count end |
#review_list_url ⇒ Object
Returns the value of attribute review_list_url.
131 132 133 |
# File 'lib/coneco/client.rb', line 131 def review_list_url @review_list_url end |
#summary ⇒ Object
Returns the value of attribute summary.
131 132 133 |
# File 'lib/coneco/client.rb', line 131 def summary @summary end |
#url ⇒ Object
Returns the value of attribute url.
131 132 133 |
# File 'lib/coneco/client.rb', line 131 def url @url end |
#user_id ⇒ Object
Returns the value of attribute user_id.
131 132 133 |
# File 'lib/coneco/client.rb', line 131 def user_id @user_id end |