Class: WorkOS::CreateCORSOrigin
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::CreateCORSOrigin
- Defined in:
- lib/workos/user_management/create_cors_origin.rb
Constant Summary collapse
- HASH_ATTRS =
{ origin: :origin }.freeze
Instance Attribute Summary collapse
-
#origin ⇒ Object
Returns the value of attribute origin.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ CreateCORSOrigin
constructor
A new instance of CreateCORSOrigin.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ CreateCORSOrigin
Returns a new instance of CreateCORSOrigin.
13 14 15 16 |
# File 'lib/workos/user_management/create_cors_origin.rb', line 13 def initialize(json) hash = self.class.normalize(json) @origin = hash[:origin] end |
Instance Attribute Details
#origin ⇒ Object
Returns the value of attribute origin.
11 12 13 |
# File 'lib/workos/user_management/create_cors_origin.rb', line 11 def origin @origin end |