Module: GrapeSimpleAuth::AuthMethods

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

Defined Under Namespace

Classes: DataStruct, User

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

#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

Returns:

  • (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

Returns:

  • (Boolean)


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

def protected_endpoint?
  @protected_endpoint || false
end