Class: NameTag::Info

Inherits:
Struct
  • Object
show all
Includes:
BetterStruct
Defined in:
lib/nametag.rb

Overview

info

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from BetterStruct

#initialize, #map, #map_values

Instance Attribute Details

#albumObject

Returns the value of attribute album

Returns:

  • (Object)

    the current value of album



66
67
68
# File 'lib/nametag.rb', line 66

def album
  @album
end

#album_nObject

Returns the value of attribute album_n

Returns:

  • (Object)

    the current value of album_n



66
67
68
# File 'lib/nametag.rb', line 66

def album_n
  @album_n
end

#artistObject

Returns the value of attribute artist

Returns:

  • (Object)

    the current value of artist



66
67
68
# File 'lib/nametag.rb', line 66

def artist
  @artist
end

#extObject

Returns the value of attribute ext

Returns:

  • (Object)

    the current value of ext



66
67
68
# File 'lib/nametag.rb', line 66

def ext
  @ext
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



66
67
68
# File 'lib/nametag.rb', line 66

def title
  @title
end

#trackObject

Returns the value of attribute track

Returns:

  • (Object)

    the current value of track



66
67
68
# File 'lib/nametag.rb', line 66

def track
  @track
end

#yearObject

Returns the value of attribute year

Returns:

  • (Object)

    the current value of year



66
67
68
# File 'lib/nametag.rb', line 66

def year
  @year
end

Instance Method Details

#to_sObject



69
70
71
# File 'lib/nametag.rb', line 69

def to_s
  map { |k,v| "#{k}=#{v.inspect}" } *' '
end