Module: Rapid::Server::Helpers::Model

Defined in:
lib/ury_rapid/server/helpers/model.rb

Overview

Sinatra helpers for performing requests on the Rapid model

Depends on Rapid::Server::Helpers::Error, for #wrap.

Instance Method Summary collapse

Instance Method Details

#getObject


14
15
16
# File 'lib/ury_rapid/server/helpers/model.rb', line 14

def get
  wrap { environment.get(request_url, &method(:handle_get)) }
end