module Fastly::Fetcher
def get(klass, *args)
def get(klass, *args) if [User, Customer].include?(klass) && args.empty? hash = client.get("/current_#{klass.path}") else hash = client.get(klass.get_path(*args)) end hash.nil? ? nil : klass.new(hash, self) end