Class: EivuFingerprinterAcoustid::Objects::ReleaseGroup
- Defined in:
- lib/eivu_fingerprinter_acoustid/objects/release_group.rb
Instance Attribute Summary collapse
-
#artists ⇒ Object
readonly
Returns the value of attribute artists.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#secondarytypes ⇒ Object
(also: #secondary_types)
readonly
Returns the value of attribute secondarytypes.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(id:, title:, type: nil, artists: [], secondarytypes: nil) ⇒ ReleaseGroup
constructor
A new instance of ReleaseGroup.
Methods inherited from BaseClass
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
#artists ⇒ Object (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 |
#id ⇒ Object (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 |
#secondarytypes ⇒ Object (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 |
#title ⇒ Object (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 |
#type ⇒ Object (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 |