Class: Apiotics::Configuration
- Inherits:
-
Object
- Object
- Apiotics::Configuration
- Defined in:
- lib/apiotics/configuration.rb
Instance Attribute Summary collapse
-
#handshake ⇒ Object
Returns the value of attribute handshake.
-
#local_logging ⇒ Object
Returns the value of attribute local_logging.
-
#local_port ⇒ Object
Returns the value of attribute local_port.
-
#parents ⇒ Object
Returns the value of attribute parents.
-
#portal ⇒ Object
Returns the value of attribute portal.
-
#private_key ⇒ Object
Returns the value of attribute private_key.
-
#public_key ⇒ Object
Returns the value of attribute public_key.
-
#push ⇒ Object
Returns the value of attribute push.
-
#server ⇒ Object
Returns the value of attribute server.
-
#server_port ⇒ Object
Returns the value of attribute server_port.
-
#targets ⇒ Object
Returns the value of attribute targets.
-
#tls ⇒ Object
Returns the value of attribute tls.
-
#verify_peer ⇒ Object
Returns the value of attribute verify_peer.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/apiotics/configuration.rb', line 6 def initialize @public_key = nil @private_key = nil @local_logging = false @targets = nil @local_port = 8001 @server = "rgs.microarx.com" @server_port = 8000 @portal = "https://test.apiotics.com/" @push = false @tls = true @verify_peer = true @handshake = true @parents = {} end |
Instance Attribute Details
#handshake ⇒ Object
Returns the value of attribute handshake.
4 5 6 |
# File 'lib/apiotics/configuration.rb', line 4 def handshake @handshake end |
#local_logging ⇒ Object
Returns the value of attribute local_logging.
4 5 6 |
# File 'lib/apiotics/configuration.rb', line 4 def local_logging @local_logging end |
#local_port ⇒ Object
Returns the value of attribute local_port.
4 5 6 |
# File 'lib/apiotics/configuration.rb', line 4 def local_port @local_port end |
#parents ⇒ Object
Returns the value of attribute parents.
4 5 6 |
# File 'lib/apiotics/configuration.rb', line 4 def parents @parents end |
#portal ⇒ Object
Returns the value of attribute portal.
4 5 6 |
# File 'lib/apiotics/configuration.rb', line 4 def portal @portal end |
#private_key ⇒ Object
Returns the value of attribute private_key.
4 5 6 |
# File 'lib/apiotics/configuration.rb', line 4 def private_key @private_key end |
#public_key ⇒ Object
Returns the value of attribute public_key.
4 5 6 |
# File 'lib/apiotics/configuration.rb', line 4 def public_key @public_key end |
#push ⇒ Object
Returns the value of attribute push.
4 5 6 |
# File 'lib/apiotics/configuration.rb', line 4 def push @push end |
#server ⇒ Object
Returns the value of attribute server.
4 5 6 |
# File 'lib/apiotics/configuration.rb', line 4 def server @server end |
#server_port ⇒ Object
Returns the value of attribute server_port.
4 5 6 |
# File 'lib/apiotics/configuration.rb', line 4 def server_port @server_port end |
#targets ⇒ Object
Returns the value of attribute targets.
4 5 6 |
# File 'lib/apiotics/configuration.rb', line 4 def targets @targets end |
#tls ⇒ Object
Returns the value of attribute tls.
4 5 6 |
# File 'lib/apiotics/configuration.rb', line 4 def tls @tls end |
#verify_peer ⇒ Object
Returns the value of attribute verify_peer.
4 5 6 |
# File 'lib/apiotics/configuration.rb', line 4 def verify_peer @verify_peer end |