Class: Teapi::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/teapi/configuration.rb

Constant Summary collapse

OPTIONS =
[
:sync_key, :sync_secret, :host, :port, :secure,
:http_open_timeout, :http_read_timeout].freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



10
11
12
13
14
15
# File 'lib/teapi/configuration.rb', line 10

def initialize
  @port = 443
  @secure = true
  @http_open_timeout = 10
  @http_read_timeout = 10
end

Instance Attribute Details

#hostObject

Returns the value of attribute host.



7
8
9
# File 'lib/teapi/configuration.rb', line 7

def host
  @host
end

#http_open_timeoutObject

Returns the value of attribute http_open_timeout.



8
9
10
# File 'lib/teapi/configuration.rb', line 8

def http_open_timeout
  @http_open_timeout
end

#http_read_timeoutObject

Returns the value of attribute http_read_timeout.



8
9
10
# File 'lib/teapi/configuration.rb', line 8

def http_read_timeout
  @http_read_timeout
end

#portObject

Returns the value of attribute port.



7
8
9
# File 'lib/teapi/configuration.rb', line 7

def port
  @port
end

#secureObject

Returns the value of attribute secure.



7
8
9
# File 'lib/teapi/configuration.rb', line 7

def secure
  @secure
end

#sync_keyObject

Returns the value of attribute sync_key.



7
8
9
# File 'lib/teapi/configuration.rb', line 7

def sync_key
  @sync_key
end

#sync_secretObject

Returns the value of attribute sync_secret.



7
8
9
# File 'lib/teapi/configuration.rb', line 7

def sync_secret
  @sync_secret
end