module Layer::Operations::Find::ClassMethods
Public Instance Methods
find(id, client = self.client)
click to toggle source
Finds the resource with the given id
@param id [String] the resource's id @param client [Layer::Client] the client to use to make this request @return [Layer::Resource] the found resource @raise [Layer::Exceptions::Exception] a subclass of Layer::Exceptions::Exception
describing the error
# File lib/layer/operations/find.rb, line 12 def find(id, client = self.client) id = Layer::Client.normalize_id(id) response = client.get("#{url}/#{id}") from_response(response, client) end