Class: Camayoc::StatEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/camayoc/stat_event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source, stat, value, options = {}) ⇒ StatEvent

Returns a new instance of StatEvent.



6
7
8
9
10
11
# File 'lib/camayoc/stat_event.rb', line 6

def initialize(source,stat,value,options={})
  self.source = source
  self.stat = stat
  self.value = value
  self.options = options
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



4
5
6
# File 'lib/camayoc/stat_event.rb', line 4

def options
  @options
end

#sourceObject

Returns the value of attribute source.



4
5
6
# File 'lib/camayoc/stat_event.rb', line 4

def source
  @source
end

#statObject

Returns the value of attribute stat.



4
5
6
# File 'lib/camayoc/stat_event.rb', line 4

def stat
  @stat
end

#valueObject

Returns the value of attribute value.



4
5
6
# File 'lib/camayoc/stat_event.rb', line 4

def value
  @value
end

Instance Method Details

#ns_statObject



13
14
15
# File 'lib/camayoc/stat_event.rb', line 13

def ns_stat
  "#{source}#{Camayoc::DELIMITER}#{stat}"
end