Class: DigitSend::Config
- Inherits:
-
Object
- Object
- DigitSend::Config
- Defined in:
- lib/digitsend/config.rb
Class Attribute Summary collapse
-
.api_token ⇒ Object
Returns the value of attribute api_token.
-
.host ⇒ Object
Returns the value of attribute host.
- .port ⇒ Object
-
.use_ssl ⇒ Object
Returns the value of attribute use_ssl.
Class Attribute Details
.api_token ⇒ Object
Returns the value of attribute api_token.
7 8 9 |
# File 'lib/digitsend/config.rb', line 7 def api_token @api_token end |
.host ⇒ Object
Returns the value of attribute host.
8 9 10 |
# File 'lib/digitsend/config.rb', line 8 def host @host end |
.port ⇒ Object
12 13 14 |
# File 'lib/digitsend/config.rb', line 12 def port @port || ( @use_ssl ? 443 : 80 ) end |
.use_ssl ⇒ Object
Returns the value of attribute use_ssl.
9 10 11 |
# File 'lib/digitsend/config.rb', line 9 def use_ssl @use_ssl end |