Class: Stupidedi::Schema::CodeList::External
Instance Attribute Summary collapse
Instance Method Summary
collapse
build, external, #internal?
Methods included from Inspect
#inspect
Constructor Details
#initialize(id) ⇒ External
Returns a new instance of External.
58
59
60
|
# File 'lib/stupidedi/schema/code_list.rb', line 58
def initialize(id)
@id = id
end
|
Instance Attribute Details
56
57
58
|
# File 'lib/stupidedi/schema/code_list.rb', line 56
def id
@id
end
|
Instance Method Details
#code_lists(values = Sets.universal) ⇒ Object
66
67
68
|
# File 'lib/stupidedi/schema/code_list.rb', line 66
def code_lists(values = Sets.universal)
Sets.build([self])
end
|
#external? ⇒ Boolean
62
63
64
|
# File 'lib/stupidedi/schema/code_list.rb', line 62
def external?
true
end
|
70
71
72
|
# File 'lib/stupidedi/schema/code_list.rb', line 70
def to_str
"CodeList.external(#{@id})"
end
|