Class: RMD::Base::Song
- Inherits:
-
Object
- Object
- RMD::Base::Song
- Defined in:
- lib/rmd/base/song.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#data_link ⇒ Object
readonly
Returns the value of attribute data_link.
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#link ⇒ Object
readonly
Returns the value of attribute link.
Instance Method Summary collapse
- #fetch ⇒ Object
-
#initialize(link) ⇒ Song
constructor
A new instance of Song.
- #success? ⇒ Boolean
Constructor Details
#initialize(link) ⇒ Song
Returns a new instance of Song.
6 7 8 |
# File 'lib/rmd/base/song.rb', line 6 def initialize(link) @link = link end |
Instance Attribute Details
#data_link ⇒ Object (readonly)
Returns the value of attribute data_link.
4 5 6 |
# File 'lib/rmd/base/song.rb', line 4 def data_link @data_link end |
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
4 5 6 |
# File 'lib/rmd/base/song.rb', line 4 def errors @errors end |
#link ⇒ Object (readonly)
Returns the value of attribute link.
4 5 6 |
# File 'lib/rmd/base/song.rb', line 4 def link @link end |
Instance Method Details
#fetch ⇒ Object
10 |
# File 'lib/rmd/base/song.rb', line 10 def fetch; end |
#success? ⇒ Boolean
12 13 14 |
# File 'lib/rmd/base/song.rb', line 12 def success? !!data_link && data_link != '' end |