Class: WorkOS::CreateTeam
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::CreateTeam
- Defined in:
- lib/workos/platform_teams/create_team.rb
Constant Summary collapse
- HASH_ATTRS =
{ admin_email: :admin_email, name: :name }.freeze
Instance Attribute Summary collapse
-
#admin_email ⇒ Object
Returns the value of attribute admin_email.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(json) ⇒ CreateTeam
constructor
A new instance of CreateTeam.
Constructor Details
#initialize(json) ⇒ CreateTeam
Returns a new instance of CreateTeam.
16 17 18 19 20 |
# File 'lib/workos/platform_teams/create_team.rb', line 16 def initialize(json) hash = self.class.normalize(json) @admin_email = hash[:admin_email] @name = hash[:name] end |
Instance Attribute Details
#admin_email ⇒ Object
Returns the value of attribute admin_email.
12 13 14 |
# File 'lib/workos/platform_teams/create_team.rb', line 12 def admin_email @admin_email end |
#name ⇒ Object
Returns the value of attribute name.
12 13 14 |
# File 'lib/workos/platform_teams/create_team.rb', line 12 def name @name end |