Class: Himari::Decisions::Claims::Context
- Inherits:
-
Struct
- Object
- Struct
- Himari::Decisions::Claims::Context
- Defined in:
- lib/himari/decisions/claims.rb
Instance Attribute Summary collapse
-
#auth ⇒ Object
Returns the value of attribute auth.
-
#grant_type ⇒ Object
Returns the value of attribute grant_type.
-
#provider ⇒ Object
Returns the value of attribute provider.
-
#refresh_info ⇒ Object
Returns the value of attribute refresh_info.
-
#request ⇒ Object
Returns the value of attribute request.
Instance Method Summary collapse
Instance Attribute Details
#auth ⇒ Object
Returns the value of attribute auth
12 13 14 |
# File 'lib/himari/decisions/claims.rb', line 12 def auth @auth end |
#grant_type ⇒ Object
Returns the value of attribute grant_type
12 13 14 |
# File 'lib/himari/decisions/claims.rb', line 12 def grant_type @grant_type end |
#provider ⇒ Object
Returns the value of attribute provider
12 13 14 |
# File 'lib/himari/decisions/claims.rb', line 12 def provider @provider end |
#refresh_info ⇒ Object
Returns the value of attribute refresh_info
12 13 14 |
# File 'lib/himari/decisions/claims.rb', line 12 def refresh_info @refresh_info end |
#request ⇒ Object
Returns the value of attribute request
12 13 14 |
# File 'lib/himari/decisions/claims.rb', line 12 def request @request end |
Instance Method Details
#initial? ⇒ Boolean
13 |
# File 'lib/himari/decisions/claims.rb', line 13 def initial?; grant_type.nil? || grant_type == :initial; end |
#refresh? ⇒ Boolean
14 |
# File 'lib/himari/decisions/claims.rb', line 14 def refresh?; grant_type == :refresh_token; end |