github.com/cozy/cozy-stack@v0.0.0-20240603063001-31110fa4cae1/tests/system/lib/settings.rb (about) 1 class Settings 2 def self.doctype 3 "io.cozy.settings" 4 end 5 6 def self.instance(inst) 7 opts = { 8 accept: :json, 9 authorization: "Bearer #{inst.token_for doctype}" 10 } 11 res = inst.client["/settings/instance"].get opts 12 JSON.parse(res).dig "data", "attributes" 13 end 14 end