Class: NameTag::Info
- Inherits:
-
Struct
- Object
- Struct
- NameTag::Info
- Includes:
- BetterStruct
- Defined in:
- lib/nametag.rb
Overview
info
Instance Attribute Summary collapse
-
#album ⇒ Object
Returns the value of attribute album.
-
#album_n ⇒ Object
Returns the value of attribute album_n.
-
#artist ⇒ Object
Returns the value of attribute artist.
-
#ext ⇒ Object
Returns the value of attribute ext.
-
#title ⇒ Object
Returns the value of attribute title.
-
#track ⇒ Object
Returns the value of attribute track.
-
#year ⇒ Object
Returns the value of attribute year.
Instance Method Summary collapse
Methods included from BetterStruct
#initialize, #map, #map_values
Instance Attribute Details
#album ⇒ Object
Returns the value of attribute album
66 67 68 |
# File 'lib/nametag.rb', line 66 def album @album end |
#album_n ⇒ Object
Returns the value of attribute album_n
66 67 68 |
# File 'lib/nametag.rb', line 66 def album_n @album_n end |
#artist ⇒ Object
Returns the value of attribute artist
66 67 68 |
# File 'lib/nametag.rb', line 66 def artist @artist end |
#ext ⇒ Object
Returns the value of attribute ext
66 67 68 |
# File 'lib/nametag.rb', line 66 def ext @ext end |
#title ⇒ Object
Returns the value of attribute title
66 67 68 |
# File 'lib/nametag.rb', line 66 def title @title end |
#track ⇒ Object
Returns the value of attribute track
66 67 68 |
# File 'lib/nametag.rb', line 66 def track @track end |
#year ⇒ Object
Returns the value of attribute year
66 67 68 |
# File 'lib/nametag.rb', line 66 def year @year end |
Instance Method Details
#to_s ⇒ Object
69 70 71 |
# File 'lib/nametag.rb', line 69 def to_s map { |k,v| "#{k}=#{v.inspect}" } *' ' end |