Method: MLS.with_api_key

Defined in:
lib/mls.rb

.with_api_key(key, &block) ⇒ Object



37
38
39
40
41
42
# File 'lib/mls.rb', line 37

def self.with_api_key(key, &block)
  Thread.current[:sunstone_api_key] = key
  yield
ensure
  Thread.current[:sunstone_api_key] = nil
end