Class: LastDup::Album
- Inherits:
-
Object
- Object
- LastDup::Album
- Defined in:
- lib/last-dup/album.rb
Instance Attribute Summary collapse
-
#folder_name ⇒ Object
readonly
Returns the value of attribute folder_name.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
Instance Method Summary collapse
-
#initialize(folder_name) ⇒ Album
constructor
A new instance of Album.
- #tags_are_present?(*tags) ⇒ Boolean
Constructor Details
#initialize(folder_name) ⇒ Album
Returns a new instance of Album.
9 10 11 12 13 |
# File 'lib/last-dup/album.rb', line 9 def initialize(folder_name) @folder_name = folder_name @album_proxy_file = Dir.glob("#{folder_name}/*.mp3")[0] end |
Instance Attribute Details
#folder_name ⇒ Object (readonly)
Returns the value of attribute folder_name.
7 8 9 |
# File 'lib/last-dup/album.rb', line 7 def folder_name @folder_name end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
7 8 9 |
# File 'lib/last-dup/album.rb', line 7 def end |
Instance Method Details
#tags_are_present?(*tags) ⇒ Boolean
27 28 29 30 31 32 |
# File 'lib/last-dup/album.rb', line 27 def (*) .each do |tag| return false unless .has_key? tag end return true end |