Class: Coneco::Review
- Inherits:
-
Object
- Object
- Coneco::Review
- Includes:
- InitHelper
- Defined in:
- lib/coneco/client.rb
Instance Attribute Summary collapse
-
#item ⇒ Object
Returns the value of attribute item.
-
#review ⇒ Object
Returns the value of attribute review.
Instance Method Summary collapse
-
#initialize(h) ⇒ Review
constructor
(item, review).
Methods included from InitHelper
Constructor Details
#initialize(h) ⇒ Review
(item, review)
122 123 124 125 126 |
# File 'lib/coneco/client.rb', line 122 def initialize(h) #(item, review) populate(h) @item = Product.new(@item) if @item @review = ReviewItem.new(@review) if @review end |
Instance Attribute Details
#item ⇒ Object
Returns the value of attribute item.
121 122 123 |
# File 'lib/coneco/client.rb', line 121 def item @item end |
#review ⇒ Object
Returns the value of attribute review.
121 122 123 |
# File 'lib/coneco/client.rb', line 121 def review @review end |