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.
61
62
63
|
# File 'lib/stupidedi/schema/code_list.rb', line 61
def initialize(id)
@id = id
end
|
Instance Attribute Details
#id ⇒ String
59
60
61
|
# File 'lib/stupidedi/schema/code_list.rb', line 59
def id
@id
end
|
Instance Method Details
#code_lists(values = Sets.universal) ⇒ Object
69
70
71
|
# File 'lib/stupidedi/schema/code_list.rb', line 69
def code_lists(values = Sets.universal)
Sets.build([self])
end
|
#external? ⇒ Boolean
65
66
67
|
# File 'lib/stupidedi/schema/code_list.rb', line 65
def external?
true
end
|
#to_str ⇒ Object
73
74
75
|
# File 'lib/stupidedi/schema/code_list.rb', line 73
def to_str
"CodeList.external(#{@id})"
end
|