Class: EivuFingerprinterAcoustid::Objects::ReleaseGroup

Inherits:
BaseClass
  • Object
show all
Defined in:
lib/eivu_fingerprinter_acoustid/objects/release_group.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseClass

#==, #hash, #state

Constructor Details

#initialize(id:, title:, type: nil, artists: [], secondarytypes: nil) ⇒ ReleaseGroup

Returns a new instance of ReleaseGroup.



10
11
12
13
14
15
16
# File 'lib/eivu_fingerprinter_acoustid/objects/release_group.rb', line 10

def initialize(id:, title: ,type: nil, artists: [], secondarytypes: nil)
  @id             = id
  @type           = type
  @title          = title
  @artists        = instantiate_artists(artists)
  @secondarytypes = secondarytypes
end

Instance Attribute Details

#artistsObject (readonly)

Returns the value of attribute artists.



8
9
10
# File 'lib/eivu_fingerprinter_acoustid/objects/release_group.rb', line 8

def artists
  @artists
end

#idObject (readonly)

Returns the value of attribute id.



8
9
10
# File 'lib/eivu_fingerprinter_acoustid/objects/release_group.rb', line 8

def id
  @id
end

#secondarytypesObject (readonly) Also known as: secondary_types

Returns the value of attribute secondarytypes.



8
9
10
# File 'lib/eivu_fingerprinter_acoustid/objects/release_group.rb', line 8

def secondarytypes
  @secondarytypes
end

#titleObject (readonly)

Returns the value of attribute title.



8
9
10
# File 'lib/eivu_fingerprinter_acoustid/objects/release_group.rb', line 8

def title
  @title
end

#typeObject (readonly)

Returns the value of attribute type.



8
9
10
# File 'lib/eivu_fingerprinter_acoustid/objects/release_group.rb', line 8

def type
  @type
end