class PetfinderV2::Config

Public Class Methods

new() click to toggle source
# File lib/petfinder_V2/config.rb, line 7
def initialize
  @conf = {}
end

Public Instance Methods

read(key) click to toggle source
# File lib/petfinder_V2/config.rb, line 15
def read(key)
  key ? (@conf[key.to_s] || @conf[key.to_sym]) : @conf
end
set(key, value) click to toggle source
# File lib/petfinder_V2/config.rb, line 11
def set(key, value)
  @conf[key] = value
end