Class: WorkOS::UserConsentOptionChoice

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/workos/connect/user_consent_option_choice.rb

Constant Summary collapse

HASH_ATTRS =
{
  value: :value,
  label: :label
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#labelObject

Returns the value of attribute label.



12
13
14
# File 'lib/workos/connect/user_consent_option_choice.rb', line 12

def label
  @label
end

#valueObject

Returns the value of attribute value.



12
13
14
# File 'lib/workos/connect/user_consent_option_choice.rb', line 12

def value
  @value
end