Class: MusicBrainz::Webservice::ReleaseGroupIncludes

Inherits:
AbstractIncludes show all
Defined in:
lib/rbrainz/webservice/includes.rb

Overview

A specification on how much data to return with a release group.

Instance Method Summary collapse

Methods inherited from AbstractIncludes

#to_s

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.check_options includes, 
      :artist, :releases
  @parameters = Array.new
  @parameters << 'artist'       if includes[:artist]
  @parameters << 'releases'       if includes[:releases]
end