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
341 342 343 |
# File 'lib/copilot/types.rb', line 341 def protocol_version @protocol_version end |
#version ⇒ Object
Returns the value of attribute version
341 342 343 |
# File 'lib/copilot/types.rb', line 341 def version @version end |
Class Method Details
.from_hash(h) ⇒ Object
342 343 344 |
# File 'lib/copilot/types.rb', line 342 def self.from_hash(h) new(version: h["version"], protocol_version: h["protocolVersion"]) end |