Class: Stupidedi::Schema::CodeList

Inherits:
Object
  • Object
show all
Includes:
Inspect
Defined in:
lib/stupidedi/schema/code_list.rb

Direct Known Subclasses

External, Internal

Defined Under Namespace

Classes: External, Internal

Constructors collapse

Instance Method Summary collapse

Methods included from Inspect

#inspect

Class Method Details

.build(hash) ⇒ CodeList::Internal

Returns:


84
85
86
# File 'lib/stupidedi/schema/code_list.rb', line 84

def build(hash)
  CodeList::Internal.new(hash)
end

.external(id, *ignored) ⇒ CodeList::External

Returns:


89
90
91
# File 'lib/stupidedi/schema/code_list.rb', line 89

def external(id, *ignored)
  CodeList::External.new(id)
end

Instance Method Details

#internal?Boolean

Returns:

  • (Boolean)

13
14
15
# File 'lib/stupidedi/schema/code_list.rb', line 13

def internal?
  not external?
end