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:



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

def build(hash)
  # @todo: deprecate
  CodeList::Internal.new(hash)
end

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

Returns:



91
92
93
# File 'lib/stupidedi/schema/code_list.rb', line 91

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

.internal(hash) ⇒ CodeList::Internal

Returns:



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

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

Instance Method Details

#external?Boolean

This method is abstract.

Returns:

  • (Boolean)


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

abstract :external?

#internal?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/stupidedi/schema/code_list.rb', line 11

def internal?
  not external?
end