Class: AgentAdmit::IntrospectionClient::IntrospectionResult

Inherits:
Struct
  • Object
show all
Defined in:
lib/agentadmit/introspection_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#agent_labelObject

Returns the value of attribute agent_label

Returns:

  • (Object)

    the current value of agent_label



13
14
15
# File 'lib/agentadmit/introspection_client.rb', line 13

def agent_label
  @agent_label
end

#connection_idObject

Returns the value of attribute connection_id

Returns:

  • (Object)

    the current value of connection_id



13
14
15
# File 'lib/agentadmit/introspection_client.rb', line 13

def connection_id
  @connection_id
end

#scopesObject

Returns the value of attribute scopes

Returns:

  • (Object)

    the current value of scopes



13
14
15
# File 'lib/agentadmit/introspection_client.rb', line 13

def scopes
  @scopes
end

#user_idObject

Returns the value of attribute user_id

Returns:

  • (Object)

    the current value of user_id



13
14
15
# File 'lib/agentadmit/introspection_client.rb', line 13

def user_id
  @user_id
end

Instance Method Details

#has_scope?(scope) ⇒ Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/agentadmit/introspection_client.rb', line 14

def has_scope?(scope)
  scopes.include?(scope)
end