Class: Apiotics::Configuration
- Inherits:
-
Object
- Object
- Apiotics::Configuration
- Defined in:
- lib/apiotics/configuration.rb
Instance Attribute Summary collapse
-
#aws_endpoint ⇒ Object
Returns the value of attribute aws_endpoint.
-
#create_heartbeat_error ⇒ Object
Returns the value of attribute create_heartbeat_error.
-
#handshake ⇒ Object
Returns the value of attribute handshake.
-
#heartbeat_interval ⇒ Object
Returns the value of attribute heartbeat_interval.
-
#heroku ⇒ Object
Returns the value of attribute heroku.
-
#interface_kinds ⇒ Object
Returns the value of attribute interface_kinds.
-
#local_logging ⇒ Object
Returns the value of attribute local_logging.
-
#local_port ⇒ Object
Returns the value of attribute local_port.
-
#max_missed_heartbeats ⇒ Object
Returns the value of attribute max_missed_heartbeats.
-
#mqtt_port ⇒ Object
Returns the value of attribute mqtt_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.
-
#redis_comms_connection ⇒ Object
Returns the value of attribute redis_comms_connection.
-
#reduced_metadata ⇒ Object
Returns the value of attribute reduced_metadata.
-
#server ⇒ Object
Returns the value of attribute server.
-
#server_port ⇒ Object
Returns the value of attribute server_port.
-
#server_type ⇒ Object
Returns the value of attribute server_type.
-
#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
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# 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://portal.apiotics.com/" @push = false @tls = true @verify_peer = true @handshake = true @parents = {} = false @redis_comms_connection = false @max_missed_heartbeats = 3 @heartbeat_interval = 5 @create_heartbeat_error = false @heroku = false @server_type = nil @mqtt_port = 8883 @aws_endpoint @interface_kinds = { "string" => "string", "text" => "string", "smallint" => "integer", "integer" => "integer", "bigint" => "integer", "float" => "float", "boolean" => "boolean", "enum" => "string", "json" => "json", "uint8_t" => "integer", "uint16_t" => "integer", "uint32_t" => "integer", "int16_t" => "integer", "int32_t" => "integer", "int64_t" => "integer" } end |
Instance Attribute Details
#aws_endpoint ⇒ Object
Returns the value of attribute aws_endpoint.
4 5 6 |
# File 'lib/apiotics/configuration.rb', line 4 def aws_endpoint @aws_endpoint end |
#create_heartbeat_error ⇒ Object
Returns the value of attribute create_heartbeat_error.
4 5 6 |
# File 'lib/apiotics/configuration.rb', line 4 def create_heartbeat_error @create_heartbeat_error end |
#handshake ⇒ Object
Returns the value of attribute handshake.
4 5 6 |
# File 'lib/apiotics/configuration.rb', line 4 def handshake @handshake end |
#heartbeat_interval ⇒ Object
Returns the value of attribute heartbeat_interval.
4 5 6 |
# File 'lib/apiotics/configuration.rb', line 4 def heartbeat_interval @heartbeat_interval end |
#heroku ⇒ Object
Returns the value of attribute heroku.
4 5 6 |
# File 'lib/apiotics/configuration.rb', line 4 def heroku @heroku end |
#interface_kinds ⇒ Object
Returns the value of attribute interface_kinds.
4 5 6 |
# File 'lib/apiotics/configuration.rb', line 4 def interface_kinds @interface_kinds 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 |
#max_missed_heartbeats ⇒ Object
Returns the value of attribute max_missed_heartbeats.
4 5 6 |
# File 'lib/apiotics/configuration.rb', line 4 def max_missed_heartbeats @max_missed_heartbeats end |
#mqtt_port ⇒ Object
Returns the value of attribute mqtt_port.
4 5 6 |
# File 'lib/apiotics/configuration.rb', line 4 def mqtt_port @mqtt_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 |
#redis_comms_connection ⇒ Object
Returns the value of attribute redis_comms_connection.
4 5 6 |
# File 'lib/apiotics/configuration.rb', line 4 def redis_comms_connection @redis_comms_connection end |
#reduced_metadata ⇒ Object
Returns the value of attribute reduced_metadata.
4 5 6 |
# File 'lib/apiotics/configuration.rb', line 4 def 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 |
#server_type ⇒ Object
Returns the value of attribute server_type.
4 5 6 |
# File 'lib/apiotics/configuration.rb', line 4 def server_type @server_type 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 |