Class: Yahoo::Music::Review

Inherits:
Base
  • Object
show all
Defined in:
lib/yahoo-music/base.rb,
lib/yahoo-music/review.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject (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_sObject



27
28
29
# File 'lib/yahoo-music/review.rb', line 27

def to_s
  self.content
end