Class: Tagomatic::TagSetter
- Inherits:
-
Object
- Object
- Tagomatic::TagSetter
- Defined in:
- lib/tagomatic/tag_setter.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ TagSetter
constructor
A new instance of TagSetter.
- #process(tags_hash) ⇒ Object
Constructor Details
#initialize(options) ⇒ TagSetter
Returns a new instance of TagSetter.
5 6 7 |
# File 'lib/tagomatic/tag_setter.rb', line 5 def initialize() @options = end |
Instance Method Details
#process(tags_hash) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/tagomatic/tag_setter.rb', line 9 def process() [:a] if @options[:artist] [:b] if @options[:album] [:d] if @options[:discnum] [:g] if @options[:genre] [:n] if @options[:tracknum] [:t] if @options[:title] [:y] if @options[:year] end |