Class: Copilot::GetAuthStatusResponse

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

Overview

Response from auth.getStatus.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#auth_typeObject

Returns the value of attribute auth_type

Returns:

  • (Object)

    the current value of auth_type



348
349
350
# File 'lib/copilot/types.rb', line 348

def auth_type
  @auth_type
end

#hostObject

Returns the value of attribute host

Returns:

  • (Object)

    the current value of host



348
349
350
# File 'lib/copilot/types.rb', line 348

def host
  @host
end

#is_authenticatedObject

Returns the value of attribute is_authenticated

Returns:

  • (Object)

    the current value of is_authenticated



348
349
350
# File 'lib/copilot/types.rb', line 348

def is_authenticated
  @is_authenticated
end

#loginObject

Returns the value of attribute login

Returns:

  • (Object)

    the current value of login



348
349
350
# File 'lib/copilot/types.rb', line 348

def 
  @login
end

#status_messageObject

Returns the value of attribute status_message

Returns:

  • (Object)

    the current value of status_message



348
349
350
# File 'lib/copilot/types.rb', line 348

def status_message
  @status_message
end

Class Method Details

.from_hash(h) ⇒ Object



352
353
354
355
356
357
358
359
360
# File 'lib/copilot/types.rb', line 352

def self.from_hash(h)
  new(
    is_authenticated: h["isAuthenticated"],
    auth_type: h["authType"],
    host: h["host"],
    login: h["login"],
    status_message: h["statusMessage"]
  )
end