Class: MusicBrainz::Webservice::ReleaseGroupIncludes
- Inherits:
-
AbstractIncludes
- Object
- AbstractIncludes
- MusicBrainz::Webservice::ReleaseGroupIncludes
- Defined in:
- lib/rbrainz/webservice/includes.rb
Overview
A specification on how much data to return with a release group.
Instance Method Summary collapse
-
#initialize(includes) ⇒ ReleaseGroupIncludes
constructor
Includes is a hash with the following fields: [:artist] Include track artist (boolean).
Methods inherited from AbstractIncludes
Constructor Details
#initialize(includes) ⇒ ReleaseGroupIncludes
Includes is a hash with the following fields: [:artist] Include track artist (boolean). [:releases] Include releases of the release group (boolean).
112 113 114 115 116 117 118 |
# File 'lib/rbrainz/webservice/includes.rb', line 112 def initialize(includes) Utils. includes, :artist, :releases @parameters = Array.new @parameters << 'artist' if includes[:artist] @parameters << 'releases' if includes[:releases] end |