Class: DigitSend::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/digitsend/config.rb

Class Attribute Summary collapse

Class Attribute Details

.api_tokenObject

Returns the value of attribute api_token.



7
8
9
# File 'lib/digitsend/config.rb', line 7

def api_token
  @api_token
end

.hostObject

Returns the value of attribute host.



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

def host
  @host
end

.portObject



12
13
14
# File 'lib/digitsend/config.rb', line 12

def port
  @port || ( @use_ssl ? 443 : 80 )
end

.use_sslObject

Returns the value of attribute use_ssl.



9
10
11
# File 'lib/digitsend/config.rb', line 9

def use_ssl
  @use_ssl
end