Class: WorkOS::GenerateLink
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::GenerateLink
- Defined in:
- lib/workos/admin_portal/generate_link.rb
Constant Summary collapse
- HASH_ATTRS =
{ return_url: :return_url, success_url: :success_url, organization: :organization, intent: :intent, intent_options: :intent_options, admin_emails: :admin_emails }.freeze
Instance Attribute Summary collapse
-
#admin_emails ⇒ Object
Returns the value of attribute admin_emails.
-
#intent ⇒ Object
Returns the value of attribute intent.
-
#intent_options ⇒ Object
Returns the value of attribute intent_options.
-
#organization ⇒ Object
Returns the value of attribute organization.
-
#return_url ⇒ Object
Returns the value of attribute return_url.
-
#success_url ⇒ Object
Returns the value of attribute success_url.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ GenerateLink
constructor
A new instance of GenerateLink.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ GenerateLink
Returns a new instance of GenerateLink.
24 25 26 27 28 29 30 31 32 |
# File 'lib/workos/admin_portal/generate_link.rb', line 24 def initialize(json) hash = self.class.normalize(json) @return_url = hash[:return_url] @success_url = hash[:success_url] @organization = hash[:organization] @intent = hash[:intent] @intent_options = hash[:intent_options] ? WorkOS::IntentOptions.new(hash[:intent_options]) : nil @admin_emails = hash[:admin_emails] || [] end |
Instance Attribute Details
#admin_emails ⇒ Object
Returns the value of attribute admin_emails.
16 17 18 |
# File 'lib/workos/admin_portal/generate_link.rb', line 16 def admin_emails @admin_emails end |
#intent ⇒ Object
Returns the value of attribute intent.
16 17 18 |
# File 'lib/workos/admin_portal/generate_link.rb', line 16 def intent @intent end |
#intent_options ⇒ Object
Returns the value of attribute intent_options.
16 17 18 |
# File 'lib/workos/admin_portal/generate_link.rb', line 16 def @intent_options end |
#organization ⇒ Object
Returns the value of attribute organization.
16 17 18 |
# File 'lib/workos/admin_portal/generate_link.rb', line 16 def organization @organization end |
#return_url ⇒ Object
Returns the value of attribute return_url.
16 17 18 |
# File 'lib/workos/admin_portal/generate_link.rb', line 16 def return_url @return_url end |
#success_url ⇒ Object
Returns the value of attribute success_url.
16 17 18 |
# File 'lib/workos/admin_portal/generate_link.rb', line 16 def success_url @success_url end |