Class: Copilot::GetAuthStatusResponse
- Inherits:
-
Struct
- Object
- Struct
- Copilot::GetAuthStatusResponse
- Defined in:
- lib/copilot/types.rb
Overview
Response from auth.getStatus.
Instance Attribute Summary collapse
-
#auth_type ⇒ Object
Returns the value of attribute auth_type.
-
#host ⇒ Object
Returns the value of attribute host.
-
#is_authenticated ⇒ Object
Returns the value of attribute is_authenticated.
-
#login ⇒ Object
Returns the value of attribute login.
-
#status_message ⇒ Object
Returns the value of attribute status_message.
Class Method Summary collapse
Instance Attribute Details
#auth_type ⇒ Object
Returns the value of attribute auth_type
348 349 350 |
# File 'lib/copilot/types.rb', line 348 def auth_type @auth_type end |
#host ⇒ Object
Returns the value of attribute host
348 349 350 |
# File 'lib/copilot/types.rb', line 348 def host @host end |
#is_authenticated ⇒ Object
Returns the value of attribute is_authenticated
348 349 350 |
# File 'lib/copilot/types.rb', line 348 def is_authenticated @is_authenticated end |
#login ⇒ Object
Returns the value of attribute login
348 349 350 |
# File 'lib/copilot/types.rb', line 348 def login @login end |
#status_message ⇒ Object
Returns the value of attribute status_message
348 349 350 |
# File 'lib/copilot/types.rb', line 348 def @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 |