lib/withings/base.rb in simplificator-withings-0.4.5 vs lib/withings/base.rb in simplificator-withings-0.6.0

- old
+ new

@@ -1,7 +1,25 @@ module Withings SCALE = 1 BLOOD_PRESSURE_MONITOR = 4 + + def self.consumer_secret=(value) + @consumer_secret = value + end + + def self.consumer_secret + raise 'Please specify consumer_secret' unless @consumer_secret + @consumer_secret + end + + def self.consumer_key=(value) + @consumer_key = value + end + + def self.consumer_key + raise 'Please specify consumer_key' unless @consumer_key + @consumer_key + end end # Copied over from ActiveSupport unless Hash.new.respond_to?(:stringify_keys) class Hash \ No newline at end of file