Class: Mercadopago::Config

Inherits:
Object
  • Object
show all
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

Instance Method Details

#api_base_urlObject



30
31
32
# File 'lib/mercadopago/config/config.rb', line 30

def api_base_url
  @@API_BASE_URL
end

#mime_formObject



38
39
40
# File 'lib/mercadopago/config/config.rb', line 38

def mime_form
  @@MIME_FORM
end

#mime_jsonObject



34
35
36
# File 'lib/mercadopago/config/config.rb', line 34

def mime_json
  @@MIME_JSON
end

#product_idObject



22
23
24
# File 'lib/mercadopago/config/config.rb', line 22

def product_id
  @@PRODUCT_ID
end

#tracking_idObject



26
27
28
# File 'lib/mercadopago/config/config.rb', line 26

def tracking_id
  @@TRACKING_ID
end

#user_agentObject



18
19
20
# File 'lib/mercadopago/config/config.rb', line 18

def user_agent
  @@USER_AGENT
end

#versionObject



14
15
16
# File 'lib/mercadopago/config/config.rb', line 14

def version
  @@VERSION
end