Class: Facturama::Models::ConnectionInfo
- Inherits:
-
Object
- Object
- Facturama::Models::ConnectionInfo
- Defined in:
- lib/facturama/models/connection_info.rb
Constant Summary collapse
- URL_DEV =
API Endpoints
'https://apisandbox.facturama.mx'
- URL_PROD =
'https://api.facturama.mx'
Instance Attribute Summary collapse
-
#facturama_password ⇒ Object
readonly
Returns the value of attribute facturama_password.
-
#facturama_user ⇒ Object
readonly
Returns the value of attribute facturama_user.
-
#is_development ⇒ Object
readonly
Returns the value of attribute is_development.
-
#uri_base ⇒ Object
readonly
Returns the value of attribute uri_base.
Instance Method Summary collapse
-
#initialize(facturama_user, facturama_password, is_development = true) ⇒ ConnectionInfo
constructor
A new instance of ConnectionInfo.
Constructor Details
#initialize(facturama_user, facturama_password, is_development = true) ⇒ ConnectionInfo
Returns a new instance of ConnectionInfo.
10 11 12 13 14 15 16 |
# File 'lib/facturama/models/connection_info.rb', line 10 def initialize(facturama_user, facturama_password, is_development = true) @facturama_user = facturama_user @facturama_password = facturama_password @is_development = is_development @uri_base = is_development ? URL_DEV : URL_PROD end |
Instance Attribute Details
#facturama_password ⇒ Object (readonly)
Returns the value of attribute facturama_password.
18 19 20 |
# File 'lib/facturama/models/connection_info.rb', line 18 def facturama_password @facturama_password end |
#facturama_user ⇒ Object (readonly)
Returns the value of attribute facturama_user.
18 19 20 |
# File 'lib/facturama/models/connection_info.rb', line 18 def facturama_user @facturama_user end |
#is_development ⇒ Object (readonly)
Returns the value of attribute is_development.
18 19 20 |
# File 'lib/facturama/models/connection_info.rb', line 18 def is_development @is_development end |
#uri_base ⇒ Object (readonly)
Returns the value of attribute uri_base.
18 19 20 |
# File 'lib/facturama/models/connection_info.rb', line 18 def uri_base @uri_base end |