Class: Earworm::PUID
- Inherits:
-
Object
- Object
- Earworm::PUID
- Defined in:
- lib/earworm/puid.rb
Instance Method Summary collapse
-
#initialize(puid) ⇒ PUID
constructor
A new instance of PUID.
- #to_hash ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(puid) ⇒ PUID
Returns a new instance of PUID.
3 4 5 |
# File 'lib/earworm/puid.rb', line 3 def initialize(puid) @puid = puid end |
Instance Method Details
#to_hash ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/earworm/puid.rb', line 7 def to_hash { 'puid' => @puid, 'art' => 'unknown', 'ttl' => 'unknown', 'alb' => 'unknown', 'tnm' => 0, 'gnr' => 'unknown', 'yrr' => 0, } end |
#to_s ⇒ Object
19 |
# File 'lib/earworm/puid.rb', line 19 def to_s; @puid; end |