Module: MoipAssinaturas

Defined in:
lib/moip_assinaturas.rb,
lib/moip_assinaturas/railtie.rb,
lib/moip_assinaturas/request.rb,
lib/moip_assinaturas/version.rb,
lib/moip_assinaturas/generator.rb

Defined Under Namespace

Classes: InstallGenerator, Railtie, Request

Constant Summary collapse

VERSION =
"0.0.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_keyObject

Returns the value of attribute api_key.



8
9
10
# File 'lib/moip_assinaturas.rb', line 8

def api_key
  @api_key
end

.api_tokenObject

Returns the value of attribute api_token.



8
9
10
# File 'lib/moip_assinaturas.rb', line 8

def api_token
  @api_token
end

.loggerObject

Returns the value of attribute logger.



8
9
10
# File 'lib/moip_assinaturas.rb', line 8

def logger
  @logger
end

.sandboxObject

Returns the value of attribute sandbox.



8
9
10
# File 'lib/moip_assinaturas.rb', line 8

def sandbox
  @sandbox
end

Class Method Details

.api_urlObject



10
11
12
13
14
15
16
# File 'lib/moip_assinaturas.rb', line 10

def api_url
  if sandbox
    "https://sandbox.moip.com.br/assinaturas/v1"
  else
    "https://www.moip.com.br/assinaturas/v1"
  end
end