lib/namely/collection.rb
def find(id)
      build(resource_gateway.json_show(id))
    rescue RestClient::ResourceNotFound
      raise NoSuchModelError, "Can't find any #{endpoint} with id \"#{id}\""
    end
def find(id)
      build(resource_gateway.json_show(id))
    rescue RestClient::ResourceNotFound
      raise NoSuchModelError, "Can't find any #{endpoint} with id \"#{id}\""
    end
def find ( id ) build ( resource_gateway . json_show ( id ) ) rescue RestClient :: ResourceNotFound raise NoSuchModelError , "Can't find any #{endpoint} with id \"#{id}\"" end
Fetch a model from the server by its ID.

 @param [#to_s] id

 @raise [NoSuchModelError] if the model wasn't found.

 @return [Model]
Fetch a model from the server by its ID .