Class: Cesri::Configuration
- Inherits:
-
Object
- Object
- Cesri::Configuration
- Defined in:
- lib/cesri/configuration.rb
Instance Attribute Summary collapse
-
#authorization_url ⇒ Object
Returns the value of attribute authorization_url.
-
#recepcion_url ⇒ Object
Returns the value of attribute recepcion_url.
-
#sandbox ⇒ Object
Returns the value of attribute sandbox.
-
#sandbox_authorization_url ⇒ Object
Returns the value of attribute sandbox_authorization_url.
-
#sandbox_reception_url ⇒ Object
Returns the value of attribute sandbox_reception_url.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
10 11 12 13 14 15 16 |
# File 'lib/cesri/configuration.rb', line 10 def initialize @sandbox_reception_url = 'https://celcer.sri.gob.ec/comprobantes-electronicos-ws/RecepcionComprobantesOffline?wsdl' = 'https://celcer.sri.gob.ec/comprobantes-electronicos-ws/AutorizacionComprobantesOffline?wsdl' @recepcion_url = 'TODO' = 'TODO' @sandbox = true end |
Instance Attribute Details
#authorization_url ⇒ Object
Returns the value of attribute authorization_url.
7 8 9 |
# File 'lib/cesri/configuration.rb', line 7 def end |
#recepcion_url ⇒ Object
Returns the value of attribute recepcion_url.
6 7 8 |
# File 'lib/cesri/configuration.rb', line 6 def recepcion_url @recepcion_url end |
#sandbox ⇒ Object
Returns the value of attribute sandbox.
8 9 10 |
# File 'lib/cesri/configuration.rb', line 8 def sandbox @sandbox end |
#sandbox_authorization_url ⇒ Object
Returns the value of attribute sandbox_authorization_url.
5 6 7 |
# File 'lib/cesri/configuration.rb', line 5 def end |
#sandbox_reception_url ⇒ Object
Returns the value of attribute sandbox_reception_url.
4 5 6 |
# File 'lib/cesri/configuration.rb', line 4 def sandbox_reception_url @sandbox_reception_url end |
Class Method Details
.configuration ⇒ Object
18 19 20 |
# File 'lib/cesri/configuration.rb', line 18 def self.configuration @configuration ||= Configuration.new end |
.configuration=(config) ⇒ Object
22 23 24 |
# File 'lib/cesri/configuration.rb', line 22 def self.configuration=(config) @configuration = config end |
.configure {|configuration| ... } ⇒ Object
26 27 28 |
# File 'lib/cesri/configuration.rb', line 26 def self.configure yield configuration if block_given? end |