Module: PartyResource::ParameterValues

Defined in:
lib/party_resource/party_resource.rb

Instance Method Summary collapse

Instance Method Details

#parameter_values(list) ⇒ Object



146
147
148
149
150
151
152
153
154
155
# File 'lib/party_resource/party_resource.rb', line 146

def parameter_values(list)
  list.inject({}) do |out, var|
    begin
      out[var] = send(var)
    rescue
      raise Exceptions::MissingParameter.new(var, self)
    end
    out
  end
end