Class: Chartmogul::Metric::Base

Inherits:
Base
  • Object
show all
Defined in:
lib/chartmogul/metrics/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

method_missing

Instance Attribute Details

#metric_typeObject (readonly)

Returns the value of attribute metric_type


4
5
6
# File 'lib/chartmogul/metrics/base.rb', line 4

def metric_type
  @metric_type
end

Instance Method Details

#retrieve(metric_type, options) ⇒ Object


6
7
8
9
# File 'lib/chartmogul/metrics/base.rb', line 6

def retrieve(metric_type, options)
  @metric_type = metric_type
  list_resource(stringify_keys(options))
end