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