Class: WorkOS::JWTTemplateResponse
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::JWTTemplateResponse
- Defined in:
- lib/workos/user_management/jwt_template_response.rb
Constant Summary collapse
- HASH_ATTRS =
{ object: :object, content: :content, created_at: :created_at, updated_at: :updated_at }.freeze
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#object ⇒ Object
Returns the value of attribute object.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ JWTTemplateResponse
constructor
A new instance of JWTTemplateResponse.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ JWTTemplateResponse
Returns a new instance of JWTTemplateResponse.
20 21 22 23 24 25 26 |
# File 'lib/workos/user_management/jwt_template_response.rb', line 20 def initialize(json) hash = self.class.normalize(json) @object = hash[:object] @content = hash[:content] @created_at = hash[:created_at] @updated_at = hash[:updated_at] end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
14 15 16 |
# File 'lib/workos/user_management/jwt_template_response.rb', line 14 def content @content end |
#created_at ⇒ Object
Returns the value of attribute created_at.
14 15 16 |
# File 'lib/workos/user_management/jwt_template_response.rb', line 14 def created_at @created_at end |
#object ⇒ Object
Returns the value of attribute object.
14 15 16 |
# File 'lib/workos/user_management/jwt_template_response.rb', line 14 def object @object end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
14 15 16 |
# File 'lib/workos/user_management/jwt_template_response.rb', line 14 def updated_at @updated_at end |