Class: WorkOS::JWTTemplateResponse

Inherits:
Types::BaseModel show all
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

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

normalize

Methods included from HashProvider

#inspect, #to_h, #to_json

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

#contentObject

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_atObject

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

#objectObject

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_atObject

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