Class: WorkOS::DeviceCodeSessionAuthenticateRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::DeviceCodeSessionAuthenticateRequest
- Defined in:
- lib/workos/user_management/device_code_session_authenticate_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ client_id: :client_id, grant_type: :grant_type, device_code: :device_code, ip_address: :ip_address, device_id: :device_id, user_agent: :user_agent }.freeze
Instance Attribute Summary collapse
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#device_code ⇒ Object
Returns the value of attribute device_code.
-
#device_id ⇒ Object
Returns the value of attribute device_id.
-
#grant_type ⇒ Object
Returns the value of attribute grant_type.
-
#ip_address ⇒ Object
Returns the value of attribute ip_address.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ DeviceCodeSessionAuthenticateRequest
constructor
A new instance of DeviceCodeSessionAuthenticateRequest.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ DeviceCodeSessionAuthenticateRequest
Returns a new instance of DeviceCodeSessionAuthenticateRequest.
24 25 26 27 28 29 30 31 32 |
# File 'lib/workos/user_management/device_code_session_authenticate_request.rb', line 24 def initialize(json) hash = self.class.normalize(json) @client_id = hash[:client_id] @grant_type = hash[:grant_type] @device_code = hash[:device_code] @ip_address = hash[:ip_address] @device_id = hash[:device_id] @user_agent = hash[:user_agent] end |
Instance Attribute Details
#client_id ⇒ Object
Returns the value of attribute client_id.
16 17 18 |
# File 'lib/workos/user_management/device_code_session_authenticate_request.rb', line 16 def client_id @client_id end |
#device_code ⇒ Object
Returns the value of attribute device_code.
16 17 18 |
# File 'lib/workos/user_management/device_code_session_authenticate_request.rb', line 16 def device_code @device_code end |
#device_id ⇒ Object
Returns the value of attribute device_id.
16 17 18 |
# File 'lib/workos/user_management/device_code_session_authenticate_request.rb', line 16 def device_id @device_id end |
#grant_type ⇒ Object
Returns the value of attribute grant_type.
16 17 18 |
# File 'lib/workos/user_management/device_code_session_authenticate_request.rb', line 16 def grant_type @grant_type end |
#ip_address ⇒ Object
Returns the value of attribute ip_address.
16 17 18 |
# File 'lib/workos/user_management/device_code_session_authenticate_request.rb', line 16 def ip_address @ip_address end |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
16 17 18 |
# File 'lib/workos/user_management/device_code_session_authenticate_request.rb', line 16 def user_agent @user_agent end |