Class: LockstepSdk::SupportAccessRequest
- Inherits:
-
Object
- Object
- LockstepSdk::SupportAccessRequest
- Defined in:
- lib/lockstep_sdk/models/support_access_request.rb
Overview
Sets support access data for a user.
Instance Attribute Summary collapse
-
#expires_at ⇒ Date-time
The UTC date and time when support access should expire.
Instance Method Summary collapse
-
#as_json(options = {}) ⇒ object
This object as a JSON key-value structure.
-
#initialize(params = {}) ⇒ SupportAccessRequest
constructor
Initialize the SupportAccessRequest using the provided prototype.
-
#to_json(*options) ⇒ String
This object converted to a JSON string.
Constructor Details
#initialize(params = {}) ⇒ SupportAccessRequest
Initialize the SupportAccessRequest using the provided prototype
25 26 27 |
# File 'lib/lockstep_sdk/models/support_access_request.rb', line 25 def initialize(params = {}) @expires_at = params.dig(:expires_at) end |
Instance Attribute Details
#expires_at ⇒ Date-time
Returns The UTC date and time when support access should expire.
31 32 33 |
# File 'lib/lockstep_sdk/models/support_access_request.rb', line 31 def expires_at @expires_at end |
Instance Method Details
#as_json(options = {}) ⇒ object
Returns This object as a JSON key-value structure.
35 36 37 38 39 |
# File 'lib/lockstep_sdk/models/support_access_request.rb', line 35 def as_json(={}) { 'expiresAt' => @expires_at, } end |
#to_json(*options) ⇒ String
Returns This object converted to a JSON string.
43 44 45 |
# File 'lib/lockstep_sdk/models/support_access_request.rb', line 43 def to_json(*) "[#{as_json(*).to_json(*)}]" end |