Class: Stupidedi::Schema::CodeList
- Inherits:
-
Object
- Object
- Stupidedi::Schema::CodeList
show all
- Includes:
- Inspect
- Defined in:
- lib/stupidedi/schema/code_list.rb
Defined Under Namespace
Classes: External, Internal
Instance Method Summary
collapse
Methods included from Inspect
#inspect
Class Method Details
80
81
82
83
|
# File 'lib/stupidedi/schema/code_list.rb', line 80
def build(hash)
CodeList::Internal.new(hash)
end
|
91
92
93
|
# File 'lib/stupidedi/schema/code_list.rb', line 91
def external(id, *ignored)
CodeList::External.new(id)
end
|
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
9
|
# File 'lib/stupidedi/schema/code_list.rb', line 9
abstract :external?
|
#internal? ⇒ Boolean
11
12
13
|
# File 'lib/stupidedi/schema/code_list.rb', line 11
def internal?
not external?
end
|