Class: RMD::Zing::Song

Inherits:
Base::Song show all
Defined in:
lib/rmd/zing/song.rb

Instance Attribute Summary

Attributes inherited from Base::Song

#data_link, #errors, #link

Instance Method Summary collapse

Methods inherited from Base::Song

#initialize, #success?

Constructor Details

This class inherits a constructor from RMD::Base::Song

Instance Method Details

#fetchObject



8
9
10
11
12
13
14
# File 'lib/rmd/zing/song.rb', line 8

def fetch
  if new_link
    @data_link = RMD::Zing::Utils::CorrectUrl.correct(new_link)
  else
    @errors = 'Can not get song from this link!'
  end
end