Class: Arcp::Session::Info

Inherits:
Data
  • Object
show all
Defined in:
lib/arcp/session.rb

Overview

Immutable snapshot of session state after the welcome envelope.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#agentsObject (readonly)

Returns the value of attribute agents

Returns:

  • (Object)

    the current value of agents



19
20
21
# File 'lib/arcp/session.rb', line 19

def agents
  @agents
end

#capabilitiesObject (readonly)

Returns the value of attribute capabilities

Returns:

  • (Object)

    the current value of capabilities



19
20
21
# File 'lib/arcp/session.rb', line 19

def capabilities
  @capabilities
end

#heartbeat_interval_secObject (readonly)

Returns the value of attribute heartbeat_interval_sec

Returns:

  • (Object)

    the current value of heartbeat_interval_sec



19
20
21
# File 'lib/arcp/session.rb', line 19

def heartbeat_interval_sec
  @heartbeat_interval_sec
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



19
20
21
# File 'lib/arcp/session.rb', line 19

def id
  @id
end

#resume_tokenObject (readonly)

Returns the value of attribute resume_token

Returns:

  • (Object)

    the current value of resume_token



19
20
21
# File 'lib/arcp/session.rb', line 19

def resume_token
  @resume_token
end

#resume_window_secObject (readonly)

Returns the value of attribute resume_window_sec

Returns:

  • (Object)

    the current value of resume_window_sec



19
20
21
# File 'lib/arcp/session.rb', line 19

def resume_window_sec
  @resume_window_sec
end

#runtime_versionObject (readonly)

Returns the value of attribute runtime_version

Returns:

  • (Object)

    the current value of runtime_version



19
20
21
# File 'lib/arcp/session.rb', line 19

def runtime_version
  @runtime_version
end

Instance Method Details

#supports?(feature) ⇒ Boolean

Returns:

  • (Boolean)


23
# File 'lib/arcp/session.rb', line 23

def supports?(feature) = capabilities.supports?(feature)