Skip to content

Commit

Permalink
DIST-10392 Declared logger for MuffinMan class
Browse files Browse the repository at this point in the history
  • Loading branch information
harishpatankar committed Sep 5, 2023
1 parent 6793d70 commit 443aa70
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/muffin_man.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,19 @@ def initialize(auth_response)
end

class << self
attr_accessor :configuration, :logger
attr_accessor :configuration, :log
end

def self.configure
self.configuration ||= Configuration.new
yield(configuration)
end

def self.logger
self.log ||= MuffinMan::MuffinLogger.logger
yield(log)
end

class Configuration
attr_accessor :save_access_token, :get_access_token
end
Expand Down

0 comments on commit 443aa70

Please sign in to comment.