Class: Himari::Decisions::Claims::Context

Inherits:
Struct
  • Object
show all
Defined in:
lib/himari/decisions/claims.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#authObject

Returns the value of attribute auth

Returns:

  • (Object)

    the current value of auth



12
13
14
# File 'lib/himari/decisions/claims.rb', line 12

def auth
  @auth
end

#grant_typeObject

Returns the value of attribute grant_type

Returns:

  • (Object)

    the current value of grant_type



12
13
14
# File 'lib/himari/decisions/claims.rb', line 12

def grant_type
  @grant_type
end

#providerObject

Returns the value of attribute provider

Returns:

  • (Object)

    the current value of provider



12
13
14
# File 'lib/himari/decisions/claims.rb', line 12

def provider
  @provider
end

#refresh_infoObject

Returns the value of attribute refresh_info

Returns:

  • (Object)

    the current value of refresh_info



12
13
14
# File 'lib/himari/decisions/claims.rb', line 12

def refresh_info
  @refresh_info
end

#requestObject

Returns the value of attribute request

Returns:

  • (Object)

    the current value of request



12
13
14
# File 'lib/himari/decisions/claims.rb', line 12

def request
  @request
end

Instance Method Details

#initial?Boolean

Returns:

  • (Boolean)


13
# File 'lib/himari/decisions/claims.rb', line 13

def initial?; grant_type.nil? || grant_type == :initial; end

#refresh?Boolean

Returns:

  • (Boolean)


14
# File 'lib/himari/decisions/claims.rb', line 14

def refresh?; grant_type == :refresh_token; end