Class: WorkOS::OrganizationDomainVerificationFailedData

Inherits:
Types::BaseModel show all
Defined in:
lib/workos/organization_domains/organization_domain_verification_failed_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  reason: :reason,
  organization_domain: :organization_domain
}.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) ⇒ OrganizationDomainVerificationFailedData

Returns a new instance of OrganizationDomainVerificationFailedData.



16
17
18
19
20
# File 'lib/workos/organization_domains/organization_domain_verification_failed_data.rb', line 16

def initialize(json)
  hash = self.class.normalize(json)
  @reason = hash[:reason]
  @organization_domain = hash[:organization_domain] ? WorkOS::OrganizationDomainVerificationFailedDataOrganizationDomain.new(hash[:organization_domain]) : nil
end

Instance Attribute Details

#organization_domainObject

Returns the value of attribute organization_domain.



12
13
14
# File 'lib/workos/organization_domains/organization_domain_verification_failed_data.rb', line 12

def organization_domain
  @organization_domain
end

#reasonObject

Returns the value of attribute reason.



12
13
14
# File 'lib/workos/organization_domains/organization_domain_verification_failed_data.rb', line 12

def reason
  @reason
end