class PhishDotNetClient::SongTransition

This class represents a transition between two songs.

Attributes

from_song[R]

@!attribute [r] from_song

@return [Song] the song going into the transition
to_song[R]

@!attribute [r] to_song

@return [Song] the song going out the transition
type[R]

@!attribute [r] type

Valid types:
* :no_segue
* :segue (aka '>')
* :deep_segue (aka '->')

 @return [Symbol] the transition type

Public Class Methods

new(type, from_song, to_song) click to toggle source

@api private

@param type [Symbol] the transition type @param from_song [Song] the from song @param to_song [Song] the to song

# File lib/phish_dot_net_client/song_transition.rb, line 31
def initialize(type, from_song, to_song)
  @type = type
  @from_song = from_song
  @to_song = to_song
  @from_song.post_transition = @to_song.pre_transition = self
end