Module: GrapeSimpleAuth::AuthMethods
- Defined in:
- lib/grape_simple_auth/auth_methods/auth_methods.rb
Defined Under Namespace
Classes: DataStruct
Instance Attribute Summary collapse
-
#credentials ⇒ Object
Returns the value of attribute credentials.
-
#current_user ⇒ Object
Returns the value of attribute current_user.
-
#the_access_token ⇒ Object
Returns the value of attribute the_access_token.
Instance Method Summary collapse
Instance Attribute Details
#credentials ⇒ Object
Returns the value of attribute credentials.
3 4 5 |
# File 'lib/grape_simple_auth/auth_methods/auth_methods.rb', line 3 def credentials @credentials end |
#current_user ⇒ Object
Returns the value of attribute current_user.
3 4 5 |
# File 'lib/grape_simple_auth/auth_methods/auth_methods.rb', line 3 def current_user @current_user end |
#the_access_token ⇒ Object
Returns the value of attribute the_access_token.
3 4 5 |
# File 'lib/grape_simple_auth/auth_methods/auth_methods.rb', line 3 def the_access_token @the_access_token end |
Instance Method Details
#protected_endpoint=(protected) ⇒ Object
5 6 7 |
# File 'lib/grape_simple_auth/auth_methods/auth_methods.rb', line 5 def protected_endpoint=(protected) @protected_endpoint = protected end |
#protected_endpoint? ⇒ Boolean
9 10 11 |
# File 'lib/grape_simple_auth/auth_methods/auth_methods.rb', line 9 def protected_endpoint? @protected_endpoint || false end |