Class: WorkOS::AuthorizationCheck
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::AuthorizationCheck
- Defined in:
- lib/workos/authorization/authorization_check.rb
Constant Summary collapse
- HASH_ATTRS =
{ authorized: :authorized }.freeze
Instance Attribute Summary collapse
-
#authorized ⇒ Object
Returns the value of attribute authorized.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ AuthorizationCheck
constructor
A new instance of AuthorizationCheck.
Methods inherited from Types::BaseModel
Methods included from HashProvider
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
#authorized ⇒ Object
Returns the value of attribute authorized.
11 12 13 |
# File 'lib/workos/authorization/authorization_check.rb', line 11 def @authorized end |