Class: Copilot::GetStatusResponse

Inherits:
Struct
  • Object
show all
Defined in:
lib/copilot/types.rb

Overview

Response from status.get.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#protocol_versionObject

Returns the value of attribute protocol_version

Returns:

  • (Object)

    the current value of protocol_version



341
342
343
# File 'lib/copilot/types.rb', line 341

def protocol_version
  @protocol_version
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of 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