Module: MusicBrainz::BaseModel::InstanceMethods

Defined in:
lib/musicbrainz/models/base_model.rb

Instance Method Summary collapse

Instance Method Details

#clientObject


77
78
79
# File 'lib/musicbrainz/models/base_model.rb', line 77

def client
  MusicBrainz.client
end

#initialize(params = {}) ⇒ Object


71
72
73
74
75
# File 'lib/musicbrainz/models/base_model.rb', line 71

def initialize(params = {})
  params.each do |field, value|
    self.send(:"#{field}=", value)
  end
end