Class: WorkOS::UpdateOAuthApplication
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::UpdateOAuthApplication
- Defined in:
- lib/workos/connect/update_oauth_application.rb
Constant Summary collapse
- HASH_ATTRS =
{ name: :name, description: :description, scopes: :scopes, redirect_uris: :redirect_uris, cors_origins: :cors_origins }.freeze
Instance Attribute Summary collapse
-
#cors_origins ⇒ Object
Returns the value of attribute cors_origins.
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
-
#redirect_uris ⇒ Object
Returns the value of attribute redirect_uris.
-
#scopes ⇒ Object
Returns the value of attribute scopes.
Instance Method Summary collapse
-
#initialize(json) ⇒ UpdateOAuthApplication
constructor
A new instance of UpdateOAuthApplication.
Constructor Details
#initialize(json) ⇒ UpdateOAuthApplication
Returns a new instance of UpdateOAuthApplication.
22 23 24 25 26 27 28 29 |
# File 'lib/workos/connect/update_oauth_application.rb', line 22 def initialize(json) hash = self.class.normalize(json) @name = hash[:name] @description = hash[:description] @scopes = hash[:scopes] || [] @redirect_uris = (hash[:redirect_uris] || []).map { |item| item ? WorkOS::RedirectUriInput.new(item) : nil } @cors_origins = hash[:cors_origins] || [] end |
Instance Attribute Details
#cors_origins ⇒ Object
Returns the value of attribute cors_origins.
15 16 17 |
# File 'lib/workos/connect/update_oauth_application.rb', line 15 def cors_origins @cors_origins end |
#description ⇒ Object
Returns the value of attribute description.
15 16 17 |
# File 'lib/workos/connect/update_oauth_application.rb', line 15 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
15 16 17 |
# File 'lib/workos/connect/update_oauth_application.rb', line 15 def name @name end |
#redirect_uris ⇒ Object
Returns the value of attribute redirect_uris.
15 16 17 |
# File 'lib/workos/connect/update_oauth_application.rb', line 15 def redirect_uris @redirect_uris end |
#scopes ⇒ Object
Returns the value of attribute scopes.
15 16 17 |
# File 'lib/workos/connect/update_oauth_application.rb', line 15 def scopes @scopes end |