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, #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

#idString (readonly)

Returns:

  • (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

Returns:

  • (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