Module: GrapeSimpleAuth::AuthMethods

Defined in:
lib/grape_simple_auth/auth_methods/auth_methods.rb

Defined Under Namespace

Classes: DataStruct

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#credentialsObject

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_userObject

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_tokenObject

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

Returns:

  • (Boolean)


9
10
11
# File 'lib/grape_simple_auth/auth_methods/auth_methods.rb', line 9

def protected_endpoint?
  @protected_endpoint || false
end