Class: Yahoo::Music::Review
- Defined in:
- lib/yahoo-music/base.rb,
lib/yahoo-music/review.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
Instance Method Summary collapse
-
#initialize(xml) ⇒ Review
constructor
A new instance of Review.
- #to_s ⇒ Object
Methods inherited from Base
api_path, attribute, fetch_and_parse, #initialize_with_polymorphism, name_with_demodulization, search
Constructor Details
#initialize(xml) ⇒ Review
Returns a new instance of Review.
22 23 24 25 |
# File 'lib/yahoo-music/review.rb', line 22 def initialize(xml) @content = xml.inner_html super end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
15 16 17 |
# File 'lib/yahoo-music/review.rb', line 15 def content @content end |
Instance Method Details
#to_s ⇒ Object
27 28 29 |
# File 'lib/yahoo-music/review.rb', line 27 def to_s self.content end |