Sha256: 58c62e3336d118eb73867f141f83cfff3a30d8ef4d0b0780d258182f62811562
Contents?: true
Size: 845 Bytes
Versions: 4
Compression:
Stored size: 845 Bytes
Contents
# typed: strict # frozen_string_literal: true class SettingsController < ApplicationController extend T::Sig include PathParameter::SettingsParameters sig { void } def new @step = T.let(params.fetch(:step, 1).to_i || 1, T.nilable(Integer)) end sig { void } def edit @step = params.fetch(:step, 1).to_i || 1 response = YettoService.get_plug_installation(pparam_plug_installation_id) if response.unavailable? logger.error("Fetching Yetto inbox failed: `#{response}`") return not_acceptable end plug_installation = response.parse_json_body access_token = plug_installation.fetch("credentials", {}).fetch("access_token", "") if access_token.blank? logger.error("Fetching Yetto access_token failed: `#{response}`") return not_acceptable end not_found end end
Version data entries
4 entries across 4 versions & 1 rubygems