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.



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

def initialize(id)
  @id = id
end

Instance Attribute Details

#idString (readonly)

Returns:

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

Returns:

  • (Boolean)


65
66
67
# File 'lib/stupidedi/schema/code_list.rb', line 65

def external?
  true
end

#to_strObject



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

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