Class: KeytechKit::BomElement
- Inherits:
-
Object
- Object
- KeytechKit::BomElement
- Defined in:
- lib/keytechKit/elements/bom/bom_element.rb
Overview
A single article of a bill of material list
Instance Attribute Summary collapse
-
#cadCount ⇒ Object
Returns the value of attribute cadCount.
-
#cadDriven ⇒ Object
Returns the value of attribute cadDriven.
-
#changedBy ⇒ Object
Returns the value of attribute changedBy.
-
#changedByLong ⇒ Object
Returns the value of attribute changedByLong.
-
#count ⇒ Object
Returns the value of attribute count.
-
#createdBy ⇒ Object
Returns the value of attribute createdBy.
-
#createdByLong ⇒ Object
Returns the value of attribute createdByLong.
-
#displayName ⇒ Object
Returns the value of attribute displayName.
-
#element ⇒ Object
Returns the value of attribute element.
-
#elementKey ⇒ Object
Returns the value of attribute elementKey.
-
#key ⇒ Object
Returns the value of attribute key.
-
#keyValueList ⇒ Object
Returns the value of attribute keyValueList.
Instance Method Summary collapse
-
#initialize(data) ⇒ BomElement
constructor
A new instance of BomElement.
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
#cadCount ⇒ Object
Returns the value of attribute cadCount.
8 9 10 |
# File 'lib/keytechKit/elements/bom/bom_element.rb', line 8 def cadCount @cadCount end |
#cadDriven ⇒ Object
Returns the value of attribute cadDriven.
9 10 11 |
# File 'lib/keytechKit/elements/bom/bom_element.rb', line 9 def cadDriven @cadDriven end |
#changedBy ⇒ Object
Returns the value of attribute changedBy.
10 11 12 |
# File 'lib/keytechKit/elements/bom/bom_element.rb', line 10 def changedBy @changedBy end |
#changedByLong ⇒ Object
Returns the value of attribute changedByLong.
11 12 13 |
# File 'lib/keytechKit/elements/bom/bom_element.rb', line 11 def changedByLong @changedByLong end |
#count ⇒ Object
Returns the value of attribute count.
12 13 14 |
# File 'lib/keytechKit/elements/bom/bom_element.rb', line 12 def count @count end |
#createdBy ⇒ Object
Returns the value of attribute createdBy.
13 14 15 |
# File 'lib/keytechKit/elements/bom/bom_element.rb', line 13 def createdBy @createdBy end |
#createdByLong ⇒ Object
Returns the value of attribute createdByLong.
14 15 16 |
# File 'lib/keytechKit/elements/bom/bom_element.rb', line 14 def createdByLong @createdByLong end |
#displayName ⇒ Object
Returns the value of attribute displayName.
15 16 17 |
# File 'lib/keytechKit/elements/bom/bom_element.rb', line 15 def displayName @displayName end |
#element ⇒ Object
Returns the value of attribute element.
16 17 18 |
# File 'lib/keytechKit/elements/bom/bom_element.rb', line 16 def element @element end |
#elementKey ⇒ Object
Returns the value of attribute elementKey.
6 7 8 |
# File 'lib/keytechKit/elements/bom/bom_element.rb', line 6 def elementKey @elementKey end |
#key ⇒ Object
Returns the value of attribute key.
5 6 7 |
# File 'lib/keytechKit/elements/bom/bom_element.rb', line 5 def key @key end |
#keyValueList ⇒ Object
Returns the value of attribute keyValueList.
7 8 9 |
# File 'lib/keytechKit/elements/bom/bom_element.rb', line 7 def keyValueList @keyValueList end |