Class: Wonkavision::Plugins::Aggregation::Attribute
- Inherits:
-
Object
- Object
- Wonkavision::Plugins::Aggregation::Attribute
- Defined in:
- lib/wonkavision/plugins/analytics/aggregation/attribute.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #extract(message) ⇒ Object
-
#initialize(name, options = {}) ⇒ Attribute
constructor
A new instance of Attribute.
Constructor Details
#initialize(name, options = {}) ⇒ Attribute
Returns a new instance of Attribute.
9 10 11 12 |
# File 'lib/wonkavision/plugins/analytics/aggregation/attribute.rb', line 9 def initialize(name,={}) @name = name @options = end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/wonkavision/plugins/analytics/aggregation/attribute.rb', line 7 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/wonkavision/plugins/analytics/aggregation/attribute.rb', line 7 def @options end |
Instance Method Details
#extract(message) ⇒ Object
14 15 16 |
# File 'lib/wonkavision/plugins/analytics/aggregation/attribute.rb', line 14 def extract() [name.to_s] end |