Class: WorkOS::AuthorizationCheck

Inherits:
Types::BaseModel show all
Defined in:
lib/workos/authorization/authorization_check.rb

Constant Summary collapse

HASH_ATTRS =
{
  authorized: :authorized
}.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) ⇒ AuthorizationCheck

Returns a new instance of AuthorizationCheck.



13
14
15
16
# File 'lib/workos/authorization/authorization_check.rb', line 13

def initialize(json)
  hash = self.class.normalize(json)
  @authorized = hash[:authorized]
end

Instance Attribute Details

#authorizedObject

Returns the value of attribute authorized.



11
12
13
# File 'lib/workos/authorization/authorization_check.rb', line 11

def authorized
  @authorized
end