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
-
.api_key ⇒ Object
Returns the value of attribute api_key.
-
.api_token ⇒ Object
Returns the value of attribute api_token.
-
.logger ⇒ Object
Returns the value of attribute logger.
-
.sandbox ⇒ Object
Returns the value of attribute sandbox.
Class Method Summary collapse
Class Attribute Details
.api_key ⇒ Object
Returns the value of attribute api_key.
8 9 10 |
# File 'lib/moip_assinaturas.rb', line 8 def api_key @api_key end |
.api_token ⇒ Object
Returns the value of attribute api_token.
8 9 10 |
# File 'lib/moip_assinaturas.rb', line 8 def api_token @api_token end |
.logger ⇒ Object
Returns the value of attribute logger.
8 9 10 |
# File 'lib/moip_assinaturas.rb', line 8 def logger @logger end |
.sandbox ⇒ Object
Returns the value of attribute sandbox.
8 9 10 |
# File 'lib/moip_assinaturas.rb', line 8 def sandbox @sandbox end |
Class Method Details
.api_url ⇒ Object
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 |