Module: Hungrytable::Config

Extended by:
Config
Included in:
Config
Defined in:
lib/hungrytable/config.rb

Instance Method Summary collapse

Instance Method Details

#base_urlObject



17
18
19
# File 'lib/hungrytable/config.rb', line 17

def base_url
  'https://secure.opentable.com/api/otapi_v2.ashx'
end

#oauth_keyObject



9
10
11
# File 'lib/hungrytable/config.rb', line 9

def oauth_key
  ENV['OT_OAUTH_KEY'] || config_error('OT_OAUTH_KEY')
end

#oauth_secretObject



13
14
15
# File 'lib/hungrytable/config.rb', line 13

def oauth_secret
  ENV['OT_OAUTH_SECRET'] || config_error('OT_OAUTH_SECRET')
end

#partner_idObject



5
6
7
# File 'lib/hungrytable/config.rb', line 5

def partner_id
  ENV['OT_PARTNER_ID'] || config_error('OT_PARTNER_ID')
end