Class: Mercadopago::Config
- Inherits:
-
Object
- Object
- Mercadopago::Config
- Defined in:
- lib/mercadopago/config/config.rb
Constant Summary collapse
- @@VERSION =
'2.2.1'
- @@USER_AGENT =
"MercadoPago Ruby SDK v#{@@VERSION}"
- @@PRODUCT_ID =
'bc32a7vtrpp001u8nhjg'
- @@TRACKING_ID =
"platform:#{RUBY_VERSION},type:SDK#{@@VERSION},so;"
- @@API_BASE_URL =
'https://api.mercadopago.com'
- @@MIME_JSON =
'application/json'
- @@MIME_FORM =
'application/x-www-form-urlencoded'
Instance Method Summary collapse
- #api_base_url ⇒ Object
- #mime_form ⇒ Object
- #mime_json ⇒ Object
- #product_id ⇒ Object
- #tracking_id ⇒ Object
- #user_agent ⇒ Object
- #version ⇒ Object
Instance Method Details
#api_base_url ⇒ Object
30 31 32 |
# File 'lib/mercadopago/config/config.rb', line 30 def api_base_url @@API_BASE_URL end |
#mime_form ⇒ Object
38 39 40 |
# File 'lib/mercadopago/config/config.rb', line 38 def mime_form @@MIME_FORM end |
#mime_json ⇒ Object
34 35 36 |
# File 'lib/mercadopago/config/config.rb', line 34 def mime_json @@MIME_JSON end |
#product_id ⇒ Object
22 23 24 |
# File 'lib/mercadopago/config/config.rb', line 22 def product_id @@PRODUCT_ID end |
#tracking_id ⇒ Object
26 27 28 |
# File 'lib/mercadopago/config/config.rb', line 26 def tracking_id @@TRACKING_ID end |
#user_agent ⇒ Object
18 19 20 |
# File 'lib/mercadopago/config/config.rb', line 18 def user_agent @@USER_AGENT end |
#version ⇒ Object
14 15 16 |
# File 'lib/mercadopago/config/config.rb', line 14 def version @@VERSION end |