Class: KeytechKit::DataDictionaryDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/keytechKit/elements/data_dictionary/data_dictionary_definition.rb

Overview

Represents a single attribute - target attribute relationship

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ DataDictionaryDefinition

Returns a new instance of DataDictionaryDefinition.



17
18
19
20
21
# File 'lib/keytechKit/elements/data_dictionary/data_dictionary_definition.rb', line 17

def initialize(data)
  self.attribute = data['Attribute']
  self.toTargetAttribute = data['ToTargetAttribute']
  self.displayText = data['Displaytext']
end

Instance Attribute Details

#attributeObject

Data dictionray attribute



9
10
11
# File 'lib/keytechKit/elements/data_dictionary/data_dictionary_definition.rb', line 9

def attribute
  @attribute
end

#displayTextObject

Localized displaytext



15
16
17
# File 'lib/keytechKit/elements/data_dictionary/data_dictionary_definition.rb', line 15

def displayText
  @displayText
end

#toTargetAttributeObject

target attribute to map to



12
13
14
# File 'lib/keytechKit/elements/data_dictionary/data_dictionary_definition.rb', line 12

def toTargetAttribute
  @toTargetAttribute
end