Class: Graphite::Target

Inherits:
Object
  • Object
show all
Defined in:
lib/graphite/target.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ Target

Returns a new instance of Target.

Yields:

  • (_self)

Yield Parameters:



4
5
6
# File 'lib/graphite/target.rb', line 4

def initialize
  yield self if block_given?
end

Instance Attribute Details

#aliasObject

Returns the value of attribute alias.



3
4
5
# File 'lib/graphite/target.rb', line 3

def alias
  @alias
end

#colorObject

Returns the value of attribute color.



3
4
5
# File 'lib/graphite/target.rb', line 3

def color
  @color
end

#functionsObject

Returns the value of attribute functions.



3
4
5
# File 'lib/graphite/target.rb', line 3

def functions
  @functions
end

#metricObject

Returns the value of attribute metric.



3
4
5
# File 'lib/graphite/target.rb', line 3

def metric
  @metric
end