Class: WorkOS::FeatureFlagOwner

Inherits:
Types::BaseModel show all
Defined in:
lib/workos/feature_flags/feature_flag_owner.rb

Constant Summary collapse

HASH_ATTRS =
{
  email: :email,
  first_name: :first_name,
  last_name: :last_name
}.freeze

Instance Attribute Summary collapse

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

normalize

Methods included from HashProvider

#inspect, #to_h, #to_json

Constructor Details

#initialize(json) ⇒ FeatureFlagOwner

Returns a new instance of FeatureFlagOwner.



18
19
20
21
22
23
# File 'lib/workos/feature_flags/feature_flag_owner.rb', line 18

def initialize(json)
  hash = self.class.normalize(json)
  @email = hash[:email]
  @first_name = hash[:first_name]
  @last_name = hash[:last_name]
end

Instance Attribute Details

#emailObject

Returns the value of attribute email.



13
14
15
# File 'lib/workos/feature_flags/feature_flag_owner.rb', line 13

def email
  @email
end

#first_nameObject

Returns the value of attribute first_name.



13
14
15
# File 'lib/workos/feature_flags/feature_flag_owner.rb', line 13

def first_name
  @first_name
end

#last_nameObject

Returns the value of attribute last_name.



13
14
15
# File 'lib/workos/feature_flags/feature_flag_owner.rb', line 13

def last_name
  @last_name
end