module Her::Model::Paths
Public Instance Methods
request_path(params = {})
click to toggle source
Return a path based on the collection path and a resource data
@example
class User include Her::Model collection_path "/utilisateurs" end User.find(1) # Fetched via GET /utilisateurs/1
@param [Hash] params An optional set of additional parameters for
path construction. These will not override attributes of the resource.
# File lib/her/model/paths.rb, line 17 def request_path(params = {}) self.class.build_request_path(params.merge(attributes.dup)) end