Class: Bigcommerce::Config
- Inherits:
-
Hashie::Mash
- Object
- Hashie::Mash
- Bigcommerce::Config
- Defined in:
- lib/bigcommerce/config.rb
Constant Summary collapse
- BC_API_ENDPOINT_ENV_KEY =
'BC_API_ENDPOINT'- DEFAULTS =
{ base_url: 'https://api.bigcommerce.com' }.freeze
Instance Method Summary collapse
Instance Method Details
#api_url ⇒ String
13 14 15 16 17 |
# File 'lib/bigcommerce/config.rb', line 13 def api_url return url if auth == 'legacy' "#{base_url}/stores/#{store_hash}/v2" end |