Class: KBL::CLI::MetaData

Inherits:
Struct
  • Object
show all
Defined in:
lib/kbl/cli.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#album_idObject

Returns the value of attribute album_id

Returns:

  • (Object)

    the current value of album_id



8
9
10
# File 'lib/kbl/cli.rb', line 8

def album_id
  @album_id
end

#album_nameObject

Returns the value of attribute album_name

Returns:

  • (Object)

    the current value of album_name



8
9
10
# File 'lib/kbl/cli.rb', line 8

def album_name
  @album_name
end

#artist_idObject

Returns the value of attribute artist_id

Returns:

  • (Object)

    the current value of artist_id



8
9
10
# File 'lib/kbl/cli.rb', line 8

def artist_id
  @artist_id
end

#artist_nameObject

Returns the value of attribute artist_name

Returns:

  • (Object)

    the current value of artist_name



8
9
10
# File 'lib/kbl/cli.rb', line 8

def artist_name
  @artist_name
end

#song_idObject

Returns the value of attribute song_id

Returns:

  • (Object)

    the current value of song_id



8
9
10
# File 'lib/kbl/cli.rb', line 8

def song_id
  @song_id
end

#song_nameObject

Returns the value of attribute song_name

Returns:

  • (Object)

    the current value of song_name



8
9
10
# File 'lib/kbl/cli.rb', line 8

def song_name
  @song_name
end

Instance Method Details

#to_aObject



9
10
11
12
13
14
15
16
17
18
# File 'lib/kbl/cli.rb', line 9

def to_a
  [
    self.song_id,
    self.song_name,
    self.artist_id,
    self.artist_name,
    self.album_id,
    self.album_name
  ]
end

#to_tsvObject



20
21
22
# File 'lib/kbl/cli.rb', line 20

def to_tsv
  to_a.join "\t"
end