module Layer::Operations::Fetch

Public Class Methods

included(base) click to toggle source

@!visibility private

# File lib/layer/operations/fetch.rb, line 18
def self.included(base)
  base.extend(ClassMethods)
end

Public Instance Methods

reload() click to toggle source

Reloads the resource

@return [Layer::Resource] the resource itself @raise [Layer::Exceptions::Exception] a subclass of Layer::Exceptions::Exception describing the error

# File lib/layer/operations/fetch.rb, line 26
def reload
  self.attributes = client.get(url)
  self
end