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:



81
82
83
# File 'lib/stupidedi/schema/code_list.rb', line 81

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

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

Returns:



86
87
88
# File 'lib/stupidedi/schema/code_list.rb', line 86

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

Instance Method Details

#internal?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/stupidedi/schema/code_list.rb', line 9

def internal?
  not external?
end