Class: ConceptQL::Operators::VocabularyOperator::ConceptCode

Inherits:
Struct
  • Object
show all
Defined in:
lib/conceptql/operators/vocabulary_operator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



10
11
12
# File 'lib/conceptql/operators/vocabulary_operator.rb', line 10

def code
  @code
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



10
11
12
# File 'lib/conceptql/operators/vocabulary_operator.rb', line 10

def description
  @description
end

#vocabularyObject

Returns the value of attribute vocabulary

Returns:

  • (Object)

    the current value of vocabulary



10
11
12
# File 'lib/conceptql/operators/vocabulary_operator.rb', line 10

def vocabulary
  @vocabulary
end

Instance Method Details

#to_sObject



11
12
13
# File 'lib/conceptql/operators/vocabulary_operator.rb', line 11

def to_s
  "#{vocabulary} #{code}: #{description}"
end