Class: Graphite::Target
- Inherits:
-
Object
- Object
- Graphite::Target
- Defined in:
- lib/graphite/target.rb
Instance Attribute Summary collapse
-
#alias ⇒ Object
Returns the value of attribute alias.
-
#color ⇒ Object
Returns the value of attribute color.
-
#functions ⇒ Object
Returns the value of attribute functions.
-
#metric ⇒ Object
Returns the value of attribute metric.
Instance Method Summary collapse
-
#initialize {|_self| ... } ⇒ Target
constructor
A new instance of Target.
Constructor Details
#initialize {|_self| ... } ⇒ Target
Returns a new instance of Target.
4 5 6 |
# File 'lib/graphite/target.rb', line 4 def initialize yield self if block_given? end |
Instance Attribute Details
#alias ⇒ Object
Returns the value of attribute alias.
3 4 5 |
# File 'lib/graphite/target.rb', line 3 def alias @alias end |
#color ⇒ Object
Returns the value of attribute color.
3 4 5 |
# File 'lib/graphite/target.rb', line 3 def color @color end |
#functions ⇒ Object
Returns the value of attribute functions.
3 4 5 |
# File 'lib/graphite/target.rb', line 3 def functions @functions end |
#metric ⇒ Object
Returns the value of attribute metric.
3 4 5 |
# File 'lib/graphite/target.rb', line 3 def metric @metric end |