Class: RMD::Base::Song

Inherits:
Object
  • Object
show all
Defined in:
lib/rmd/base/song.rb

Direct Known Subclasses

NCT::Song, Zing::Song

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Returns the value of attribute data_link.



4
5
6
# File 'lib/rmd/base/song.rb', line 4

def data_link
  @data_link
end

#errorsObject (readonly)

Returns the value of attribute errors.



4
5
6
# File 'lib/rmd/base/song.rb', line 4

def errors
  @errors
end

Returns the value of attribute link.



4
5
6
# File 'lib/rmd/base/song.rb', line 4

def link
  @link
end

Instance Method Details

#fetchObject



10
# File 'lib/rmd/base/song.rb', line 10

def fetch; end

#success?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/rmd/base/song.rb', line 12

def success?
  !!data_link && data_link != ''
end