Class: GOBL::Tax::SourceKey

Inherits:
Enum show all
Defined in:
lib/gobl/tax/source_key.rb

Overview

SourceKey identifies the source of a tax identity

Constant Summary collapse

SCHEMA_ID =

The Schema ID of the GOBL SourceKey structure

'https://gobl.org/draft-0/tax/identity#/$defs/SourceKey'
ENUM =

The enumeration of values of the object and their descriptions (Values different to these are not allowed)

{
  'tax-agency' => 'Sourced directly from a tax agency',
  'passport' => 'A passport document',
  'national' => 'National ID Card or similar',
  'permit' => 'Residential or similar permit',
  'other' => 'An other type of source not listed'
}.freeze

Instance Method Summary collapse

Methods inherited from Enum

all, #description, find_by_inquirer, find_by_sym, #initialize, #method_missing, #respond_to_missing?

Methods inherited from Value

#==, #as_json, #eql?, #hash, #initialize, #to_s, #to_sym

Methods inherited from Struct

#as_json, from_data, from_json!, #to_json

Constructor Details

This class inherits a constructor from GOBL::Enum

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class GOBL::Enum

Instance Method Details

#strict_enum?Boolean



25
26
27
# File 'lib/gobl/tax/source_key.rb', line 25

def strict_enum?
  true
end