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