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

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

#idString (readonly)

Returns:



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

Returns:

  • (Boolean)


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

def external?
  true
end

#to_strObject



70
71
72
# File 'lib/stupidedi/schema/code_list.rb', line 70

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