Module: FoursquareDocument::Config

Defined in:
lib/foursquare_document/config.rb

Defined Under Namespace

Classes: Configuration

Constant Summary collapse

FS_CONFIG =
Configuration.new

Class Method Summary collapse

Class Method Details

.configure {|FS_CONFIG| ... } ⇒ Object

Yields:



7
8
9
# File 'lib/foursquare_document/config.rb', line 7

def self.configure(&block)
  yield FS_CONFIG
end

.get_clientObject



11
12
13
# File 'lib/foursquare_document/config.rb', line 11

def self.get_client
  @client = Foursquare2::Client.new(:client_id => FS_CONFIG.client_id, :client_secret => FS_CONFIG.client_secret)
end