Class: WorkOS::CreateTeam

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_emailObject

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

#nameObject

Returns the value of attribute name.



12
13
14
# File 'lib/workos/platform_teams/create_team.rb', line 12

def name
  @name
end