Class: KeytechKit::GroupBy

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

Overview

A key - values list that conatins a Name and a list of values

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ GroupBy

Returns a new instance of GroupBy.



10
11
12
13
14
# File 'lib/keytechKit/elements/group_by.rb', line 10

def initialize(data)
  self.attributeName = data['AttributeName']
  self.attributeDisplayName = data['AttributeDisplayName']
  self.values = data['Values']
end

Instance Attribute Details

#attributeDisplayNameObject

Returns the value of attribute attributeDisplayName.



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

def attributeDisplayName
  @attributeDisplayName
end

#attributeNameObject

Returns the value of attribute attributeName.



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

def attributeName
  @attributeName
end

#valuesObject

Returns the value of attribute values.



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

def values
  @values
end