lib/metric/configuration.rb in metric-0.0.5 vs lib/metric/configuration.rb in metric-0.0.6

- old
+ new

@@ -1,11 +1,21 @@ module Metric + + # Used for configuration of the Metric gem. The only required option is + # api_key, secret_key is only used if you want to pull data out from the API + # and metric_host is used for local debugging purposes. + class Configuration + # Key used to identify the website attr_accessor :api_key - # Allows setting a different host, used for development purposes + # Allows setting a different host to send data to, used for development purposes attr_accessor :metric_host + # Used to generate a hash for getting data out + attr_accessor :secret_key + + # Sets defaults def initialize @metric_host = "http://api.metric.io" end end end