class ActiveStorage::Blob

def service

Returns an instance of service, which can be configured globally or per attachment
def service
  services.fetch(service_name)
end