Class: Copilot::PingResponse
- Inherits:
-
Struct
- Object
- Struct
- Copilot::PingResponse
- Defined in:
- lib/copilot/types.rb
Overview
Ping response from the server.
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
-
#protocol_version ⇒ Object
Returns the value of attribute protocol_version.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Class Method Summary collapse
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message
330 331 332 |
# File 'lib/copilot/types.rb', line 330 def @message end |
#protocol_version ⇒ Object
Returns the value of attribute protocol_version
330 331 332 |
# File 'lib/copilot/types.rb', line 330 def protocol_version @protocol_version end |
#timestamp ⇒ Object
Returns the value of attribute timestamp
330 331 332 |
# File 'lib/copilot/types.rb', line 330 def @timestamp end |
Class Method Details
.from_hash(h) ⇒ Object
331 332 333 334 335 336 337 |
# File 'lib/copilot/types.rb', line 331 def self.from_hash(h) new( message: h["message"], timestamp: h["timestamp"], protocol_version: h["protocolVersion"] ) end |