class Vertpig::Configuration

Attributes

key[RW]
secret[RW]

Public Class Methods

defaults() click to toggle source
# File lib/vertpig/configuration.rb, line 14
def self.defaults
  @@defaults
end
new() click to toggle source
# File lib/vertpig/configuration.rb, line 18
def initialize
  reset
end

Public Instance Methods

auth() click to toggle source
# File lib/vertpig/configuration.rb, line 22
def auth
  {
    key: key,
    secret: secret
  }
end
reset() click to toggle source
# File lib/vertpig/configuration.rb, line 29
def reset
  @@defaults.each_pair { |k, v| send("#{k}=", v) }
end