Class: Stupidedi::Schema::CodeList::External

Inherits:
Stupidedi::Schema::CodeList show all
Defined in:
lib/stupidedi/schema/code_list.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Stupidedi::Schema::CodeList

build, external, #internal?

Methods included from Inspect

#inspect

Constructor Details

#initialize(id) ⇒ External


61
62
63
# File 'lib/stupidedi/schema/code_list.rb', line 61

def initialize(id)
  @id = id
end

Instance Attribute Details

#idString (readonly)


59
60
61
# File 'lib/stupidedi/schema/code_list.rb', line 59

def id
  @id
end

Instance Method Details

#code_lists(values = Sets.universal)


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


73
74
75
# File 'lib/stupidedi/schema/code_list.rb', line 73

def to_str
  "CodeList.external(#{@id})"
end