Class: KBL::CLI::MetaData
- Inherits:
-
Struct
- Object
- Struct
- KBL::CLI::MetaData
- Defined in:
- lib/kbl/cli.rb
Instance Attribute Summary collapse
-
#album_id ⇒ Object
Returns the value of attribute album_id.
-
#album_name ⇒ Object
Returns the value of attribute album_name.
-
#artist_id ⇒ Object
Returns the value of attribute artist_id.
-
#artist_name ⇒ Object
Returns the value of attribute artist_name.
-
#song_id ⇒ Object
Returns the value of attribute song_id.
-
#song_name ⇒ Object
Returns the value of attribute song_name.
Instance Method Summary collapse
Instance Attribute Details
#album_id ⇒ Object
Returns the value of attribute album_id
8 9 10 |
# File 'lib/kbl/cli.rb', line 8 def album_id @album_id end |
#album_name ⇒ Object
Returns the value of attribute album_name
8 9 10 |
# File 'lib/kbl/cli.rb', line 8 def album_name @album_name end |
#artist_id ⇒ Object
Returns the value of attribute artist_id
8 9 10 |
# File 'lib/kbl/cli.rb', line 8 def artist_id @artist_id end |
#artist_name ⇒ Object
Returns the value of attribute artist_name
8 9 10 |
# File 'lib/kbl/cli.rb', line 8 def artist_name @artist_name end |
#song_id ⇒ Object
Returns the value of attribute song_id
8 9 10 |
# File 'lib/kbl/cli.rb', line 8 def song_id @song_id end |
#song_name ⇒ Object
Returns the value of attribute song_name
8 9 10 |
# File 'lib/kbl/cli.rb', line 8 def song_name @song_name end |
Instance Method Details
#to_a ⇒ Object
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_tsv ⇒ Object
20 21 22 |
# File 'lib/kbl/cli.rb', line 20 def to_tsv to_a.join "\t" end |