Class: Earworm::PUID

Inherits:
Object
  • Object
show all
Defined in:
lib/earworm/puid.rb

Instance Method Summary collapse

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_hashObject



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_sObject



19
# File 'lib/earworm/puid.rb', line 19

def to_s; @puid; end