module GrapeSimpleAuth::AuthMethods
Attributes
credentials[RW]
current_user[RW]
the_access_token[RW]
Public Instance Methods
credentials=(data)
click to toggle source
# File lib/grape_simple_auth/auth_methods/auth_methods.rb, line 37 def credentials=(data) @credentials = JSON.parse(data.to_json, object_class: DataStruct) end
current_user=(info)
click to toggle source
# File lib/grape_simple_auth/auth_methods/auth_methods.rb, line 29 def current_user=(info) @_current_user = JSON.parse(info.to_json, object_class: User) end
optional_endpoint=(opt)
click to toggle source
# File lib/grape_simple_auth/auth_methods/auth_methods.rb, line 13 def optional_endpoint=(opt) @optional_endpoint = opt end
optional_endpoint?()
click to toggle source
# File lib/grape_simple_auth/auth_methods/auth_methods.rb, line 17 def optional_endpoint? @optional_endpoint || false end
protected_endpoint=(protected)
click to toggle source
# File lib/grape_simple_auth/auth_methods/auth_methods.rb, line 5 def protected_endpoint=(protected) @protected_endpoint = protected end
protected_endpoint?()
click to toggle source
# File lib/grape_simple_auth/auth_methods/auth_methods.rb, line 9 def protected_endpoint? @protected_endpoint || false end
the_access_token=(token)
click to toggle source
# File lib/grape_simple_auth/auth_methods/auth_methods.rb, line 25 def the_access_token=(token) @_the_access_token = token end