Skip to content

Commit ab5276f

Browse files
committed
Fix(Spectrum): Bug Fix
- Bad initializer (constructor) in GeekAuth - map_response variable name typing wrong Signed-off-by: duangsuse <fedora-opensuse@outlook.com>
1 parent ea5f514 commit ab5276f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spectrum.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,9 @@ def to_map
233233

234234
class GeekAuth
235235
def initialize(uid, tok, adm = '')
236-
user = uid
237-
token = tok
238-
server = adm
236+
@user = uid
237+
@token = tok
238+
@server = adm
239239
end
240240

241241
attr_accessor :user, :token, :server
@@ -454,7 +454,7 @@ def ClientShowcase.handler(my_spec, my_conn, my_auth, params, &action)
454454
ClientShowcase.setup_auth(req, my_auth) if ClientShowcase.require_auth?(my_spec)
455455
end
456456

457-
ClientShowcase.map_response(my_spec, reponse)
457+
ClientShowcase.map_response(my_spec, response)
458458
end
459459

460460
def self.make_json(apis)

0 commit comments

Comments
 (0)