module Layer::Operations::Fetch::ClassMethods

Public Instance Methods

fetch(client = self.client) click to toggle source

Fetches the singular resource

@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/fetch.rb, line 11
def fetch(client = self.client)
  response = client.get(url)
  from_response(response, client)
end