Class: Echowrap::Track

Inherits:
Base
  • Object
show all
Defined in:
lib/echowrap/track.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#==, attr_reader, #attrs, #initialize, #update

Constructor Details

This class inherits a constructor from Echowrap::Base

Instance Attribute Details

#album_dateObject (readonly)

Returns the value of attribute album_date.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def album_date
  @album_date
end

#album_nameObject (readonly)

Returns the value of attribute album_name.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def album_name
  @album_name
end

#album_typeObject (readonly)

Returns the value of attribute album_type.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def album_type
  @album_type
end

#analysis_channelsObject (readonly)

Returns the value of attribute analysis_channels.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def analysis_channels
  @analysis_channels
end

#analysis_sample_rateObject (readonly)

Returns the value of attribute analysis_sample_rate.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def analysis_sample_rate
  @analysis_sample_rate
end

#analyzer_versionObject (readonly)

Returns the value of attribute analyzer_version.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def analyzer_version
  @analyzer_version
end

#artistObject (readonly)

Returns the value of attribute artist.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def artist
  @artist
end

#attributesObject (readonly)

Returns the value of attribute attributes.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def attributes
  @attributes
end

#audio_md5Object (readonly)

Returns the value of attribute audio_md5.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def audio_md5
  @audio_md5
end

#bitrateObject (readonly)

Returns the value of attribute bitrate.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def bitrate
  @bitrate
end

#catalogObject (readonly)

Returns the value of attribute catalog.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def catalog
  @catalog
end

#code_versionObject (readonly)

Returns the value of attribute code_version.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def code_version
  @code_version
end

#codestringObject (readonly)

Returns the value of attribute codestring.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def codestring
  @codestring
end

#decoderObject (readonly)

Returns the value of attribute decoder.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def decoder
  @decoder
end

#durationObject (readonly)

Returns the value of attribute duration.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def duration
  @duration
end

#echoprint_versionObject (readonly)

Returns the value of attribute echoprint_version.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def echoprint_version
  @echoprint_version
end

#echoprintstringObject (readonly)

Returns the value of attribute echoprintstring.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def echoprintstring
  @echoprintstring
end

#end_of_fade_inObject (readonly)

Returns the value of attribute end_of_fade_in.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def end_of_fade_in
  @end_of_fade_in
end

#foreign_idObject (readonly)

Returns the value of attribute foreign_id.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def foreign_id
  @foreign_id
end

#foreign_release_idObject (readonly)

Returns the value of attribute foreign_release_id.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def foreign_release_id
  @foreign_release_id
end

#idObject (readonly)

Returns the value of attribute id.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def id
  @id
end

#keyObject (readonly)

Returns the value of attribute key.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def key
  @key
end

#key_confidenceObject (readonly)

Returns the value of attribute key_confidence.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def key_confidence
  @key_confidence
end

#loudnessObject (readonly)

Returns the value of attribute loudness.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def loudness
  @loudness
end

#md5Object (readonly)

Returns the value of attribute md5.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def md5
  @md5
end

#modeObject (readonly)

Returns the value of attribute mode.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def mode
  @mode
end

#mode_confidenceObject (readonly)

Returns the value of attribute mode_confidence.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def mode_confidence
  @mode_confidence
end

#num_samplesObject (readonly)

Returns the value of attribute num_samples.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def num_samples
  @num_samples
end

#offset_secondsObject (readonly)

Returns the value of attribute offset_seconds.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def offset_seconds
  @offset_seconds
end

#preview_urlObject (readonly)

Returns the value of attribute preview_url.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def preview_url
  @preview_url
end

#releaseObject (readonly)

Returns the value of attribute release.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def release
  @release
end

#release_imageObject (readonly)

Returns the value of attribute release_image.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def release_image
  @release_image
end

#sample_md5Object (readonly)

Returns the value of attribute sample_md5.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def sample_md5
  @sample_md5
end

#samplerateObject (readonly)

Returns the value of attribute samplerate.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def samplerate
  @samplerate
end

#song_idObject (readonly)

Returns the value of attribute song_id.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def song_id
  @song_id
end

#start_of_fade_outObject (readonly)

Returns the value of attribute start_of_fade_out.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def start_of_fade_out
  @start_of_fade_out
end

#statusObject (readonly)

Returns the value of attribute status.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def status
  @status
end

#synch_versionObject (readonly)

Returns the value of attribute synch_version.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def synch_version
  @synch_version
end

#synchstringObject (readonly)

Returns the value of attribute synchstring.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def synchstring
  @synchstring
end

#tempoObject (readonly)

Returns the value of attribute tempo.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def tempo
  @tempo
end

#tempo_confidenceObject (readonly)

Returns the value of attribute tempo_confidence.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def tempo_confidence
  @tempo_confidence
end

#time_signatureObject (readonly)

Returns the value of attribute time_signature.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def time_signature
  @time_signature
end

#time_signature_confidenceObject (readonly)

Returns the value of attribute time_signature_confidence.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def time_signature_confidence
  @time_signature_confidence
end

#titleObject (readonly)

Returns the value of attribute title.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def title
  @title
end

#window_secondsObject (readonly)

Returns the value of attribute window_seconds.



5
6
7
# File 'lib/echowrap/track.rb', line 5

def window_seconds
  @window_seconds
end

Instance Method Details

#audio_summaryEchowrap::AudioSummary



16
17
18
# File 'lib/echowrap/track.rb', line 16

def audio_summary
  @audio_summary ||= Echowrap::AudioSummary.new(@attrs[:audio_summary])
end