Class: WorkOS::FeatureFlagOwner
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::FeatureFlagOwner
- 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
-
#email ⇒ Object
Returns the value of attribute email.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ FeatureFlagOwner
constructor
A new instance of FeatureFlagOwner.
Methods inherited from Types::BaseModel
Methods included from HashProvider
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
#email ⇒ Object
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_name ⇒ Object
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_name ⇒ Object
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 |