Class: ICWS::StatisticCategory
- Inherits:
-
Object
- Object
- ICWS::StatisticCategory
- Defined in:
- lib/icws/statistics/statisticcategory.rb
Overview
Defines a category for supervisor statistics
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Category Description.
-
#display_string ⇒ Object
readonly
Category display string.
-
#statistic_category_id ⇒ Object
readonly
Category Id.
-
#statistic_definitions ⇒ Object
readonly
List of StatisticDefinition.
Instance Method Summary collapse
-
#initialize(propertyMap) ⇒ StatisticCategory
constructor
Creates a new Statistic category.
-
#to_s ⇒ Object
String reporesentation - DisplayString (Category Id).
Constructor Details
#initialize(propertyMap) ⇒ StatisticCategory
Creates a new Statistic category.
17 18 19 20 21 22 23 |
# File 'lib/icws/statistics/statisticcategory.rb', line 17 def initialize(propertyMap) @statistic_category_id = propertyMap['statisticCategoryId'] @display_string = propertyMap['displayString'] @description = propertyMap['description'] @statistic_definitions = [] propertyMap['statisticDefinitions'].each {|s| @statistic_definitions.push ICWS::StatisticDefinition.new(s)} end |
Instance Attribute Details
#description ⇒ Object (readonly)
Category Description
11 12 13 |
# File 'lib/icws/statistics/statisticcategory.rb', line 11 def description @description end |
#display_string ⇒ Object (readonly)
Category display string
9 10 11 |
# File 'lib/icws/statistics/statisticcategory.rb', line 9 def display_string @display_string end |
#statistic_category_id ⇒ Object (readonly)
Category Id
7 8 9 |
# File 'lib/icws/statistics/statisticcategory.rb', line 7 def statistic_category_id @statistic_category_id end |
#statistic_definitions ⇒ Object (readonly)
List of StatisticDefinition
13 14 15 |
# File 'lib/icws/statistics/statisticcategory.rb', line 13 def statistic_definitions @statistic_definitions end |
Instance Method Details
#to_s ⇒ Object
String reporesentation - DisplayString (Category Id)
26 27 28 |
# File 'lib/icws/statistics/statisticcategory.rb', line 26 def to_s @display_string + '(' + @statistic_category_id + ')' end |