Class: KeytechKit::BomElement

Inherits:
Object
  • Object
show all
Defined in:
lib/keytechKit/elements/bom/bom_element.rb

Overview

A single article of a bill of material list

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ BomElement

Returns a new instance of BomElement.



18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/keytechKit/elements/bom/bom_element.rb', line 18

def initialize(data)
  self.key = data['Key']
  self.elementKey = data['Element']['Key']
  self.cadCount = data['CadCount']
  self.cadDriven = data['CadDriven']
  self.changedBy = data['ChangedBy']
  self.changedByLong = data['ChangedByLong']
  self.count = data['Count']
  self.createdBy = data['CreatedBy']
  self.createdByLong = data['CreatedByLong']
  self.displayName = data['DisplayName']
  # self.element = data["Element"]
  set_key_value_list(data['KeyValueList'])
end

Instance Attribute Details

#cadCountObject

Returns the value of attribute cadCount.



8
9
10
# File 'lib/keytechKit/elements/bom/bom_element.rb', line 8

def cadCount
  @cadCount
end

#cadDrivenObject

Returns the value of attribute cadDriven.



9
10
11
# File 'lib/keytechKit/elements/bom/bom_element.rb', line 9

def cadDriven
  @cadDriven
end

#changedByObject

Returns the value of attribute changedBy.



10
11
12
# File 'lib/keytechKit/elements/bom/bom_element.rb', line 10

def changedBy
  @changedBy
end

#changedByLongObject

Returns the value of attribute changedByLong.



11
12
13
# File 'lib/keytechKit/elements/bom/bom_element.rb', line 11

def changedByLong
  @changedByLong
end

#countObject

Returns the value of attribute count.



12
13
14
# File 'lib/keytechKit/elements/bom/bom_element.rb', line 12

def count
  @count
end

#createdByObject

Returns the value of attribute createdBy.



13
14
15
# File 'lib/keytechKit/elements/bom/bom_element.rb', line 13

def createdBy
  @createdBy
end

#createdByLongObject

Returns the value of attribute createdByLong.



14
15
16
# File 'lib/keytechKit/elements/bom/bom_element.rb', line 14

def createdByLong
  @createdByLong
end

#displayNameObject

Returns the value of attribute displayName.



15
16
17
# File 'lib/keytechKit/elements/bom/bom_element.rb', line 15

def displayName
  @displayName
end

#elementObject

Returns the value of attribute element.



16
17
18
# File 'lib/keytechKit/elements/bom/bom_element.rb', line 16

def element
  @element
end

#elementKeyObject

Returns the value of attribute elementKey.



6
7
8
# File 'lib/keytechKit/elements/bom/bom_element.rb', line 6

def elementKey
  @elementKey
end

#keyObject

Returns the value of attribute key.



5
6
7
# File 'lib/keytechKit/elements/bom/bom_element.rb', line 5

def key
  @key
end

#keyValueListObject

Returns the value of attribute keyValueList.



7
8
9
# File 'lib/keytechKit/elements/bom/bom_element.rb', line 7

def keyValueList
  @keyValueList
end