Module: GrapeSimpleAuth::AuthMethods
- Defined in:
- lib/grape_simple_auth/auth_methods/auth_methods.rb
Defined Under Namespace
Classes: DataStruct, User
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
- #optional_endpoint=(opt) ⇒ Object
- #optional_endpoint? ⇒ Boolean
- #protected_endpoint=(protected) ⇒ Object
- #protected_endpoint? ⇒ Boolean
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
#optional_endpoint=(opt) ⇒ Object
13 14 15 |
# File 'lib/grape_simple_auth/auth_methods/auth_methods.rb', line 13 def optional_endpoint=(opt) @optional_endpoint = opt end |
#optional_endpoint? ⇒ Boolean
17 18 19 |
# File 'lib/grape_simple_auth/auth_methods/auth_methods.rb', line 17 def optional_endpoint? @optional_endpoint || false end |
#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 |