Class: MercadoPago::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/mercadopago/base.rb

Direct Known Subclasses

API::Cards, API::Clients

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(access_token: '', sandbox: true) ⇒ Base

Returns a new instance of Base.



12
13
14
15
# File 'lib/mercadopago/base.rb', line 12

def initialize(access_token: '', sandbox: true)
  @access_token = access_token
  @sandbox = sandbox
end

Instance Attribute Details

#access_tokenObject (readonly)

Returns the value of attribute access_token.



10
11
12
# File 'lib/mercadopago/base.rb', line 10

def access_token
  @access_token
end

Instance Method Details

#service_urlObject

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/mercadopago/base.rb', line 17

def service_url
  raise NotImplementedError
end