Module: Hungrytable::Config
Instance Method Summary collapse
Instance Method Details
#base_url ⇒ Object
17 18 19 |
# File 'lib/hungrytable/config.rb', line 17 def base_url 'https://secure.opentable.com/api/otapi_v2.ashx' end |
#oauth_key ⇒ Object
9 10 11 |
# File 'lib/hungrytable/config.rb', line 9 def oauth_key ENV['OT_OAUTH_KEY'] || config_error('OT_OAUTH_KEY') end |
#oauth_secret ⇒ Object
13 14 15 |
# File 'lib/hungrytable/config.rb', line 13 def oauth_secret ENV['OT_OAUTH_SECRET'] || config_error('OT_OAUTH_SECRET') end |
#partner_id ⇒ Object
5 6 7 |
# File 'lib/hungrytable/config.rb', line 5 def partner_id ENV['OT_PARTNER_ID'] || config_error('OT_PARTNER_ID') end |