Class: WorkOS::UserConsentOptionChoice

Inherits:
Types::BaseModel 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

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) ⇒ 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