Class: Copilot::GetStatusResponse
- Inherits:
-
Struct
- Object
- Struct
- Copilot::GetStatusResponse
- Defined in:
- lib/copilot/types.rb
Overview
Response from status.get.
Instance Attribute Summary collapse
-
#protocol_version ⇒ Object
Returns the value of attribute protocol_version.
-
#version ⇒ Object
Returns the value of attribute version.
Class Method Summary collapse
Instance Attribute Details
#protocol_version ⇒ Object
Returns the value of attribute protocol_version
343 344 345 |
# File 'lib/copilot/types.rb', line 343 def protocol_version @protocol_version end |
#version ⇒ Object
Returns the value of attribute version
343 344 345 |
# File 'lib/copilot/types.rb', line 343 def version @version end |
Class Method Details
.from_hash(h) ⇒ Object
344 345 346 |
# File 'lib/copilot/types.rb', line 344 def self.from_hash(h) new(version: h["version"], protocol_version: h["protocolVersion"]) end |