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 }.freeze
Instance Attribute Summary collapse
-
#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.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ UpdateOAuthApplication
constructor
A new instance of UpdateOAuthApplication.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ UpdateOAuthApplication
Returns a new instance of UpdateOAuthApplication.
20 21 22 23 24 25 26 |
# File 'lib/workos/connect/update_oauth_application.rb', line 20 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 } end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
14 15 16 |
# File 'lib/workos/connect/update_oauth_application.rb', line 14 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
14 15 16 |
# File 'lib/workos/connect/update_oauth_application.rb', line 14 def name @name end |
#redirect_uris ⇒ Object
Returns the value of attribute redirect_uris.
14 15 16 |
# File 'lib/workos/connect/update_oauth_application.rb', line 14 def redirect_uris @redirect_uris end |
#scopes ⇒ Object
Returns the value of attribute scopes.
14 15 16 |
# File 'lib/workos/connect/update_oauth_application.rb', line 14 def scopes @scopes end |