Class: Apiotics::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration



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_endpointObject

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_errorObject

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

#handshakeObject

Returns the value of attribute handshake.



4
5
6
# File 'lib/apiotics/configuration.rb', line 4

def handshake
  @handshake
end

#heartbeat_intervalObject

Returns the value of attribute heartbeat_interval.



4
5
6
# File 'lib/apiotics/configuration.rb', line 4

def heartbeat_interval
  @heartbeat_interval
end

#herokuObject

Returns the value of attribute heroku.



4
5
6
# File 'lib/apiotics/configuration.rb', line 4

def heroku
  @heroku
end

#interface_kindsObject

Returns the value of attribute interface_kinds.



4
5
6
# File 'lib/apiotics/configuration.rb', line 4

def interface_kinds
  @interface_kinds
end

#local_loggingObject

Returns the value of attribute local_logging.



4
5
6
# File 'lib/apiotics/configuration.rb', line 4

def local_logging
  @local_logging
end

#local_portObject

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_heartbeatsObject

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_portObject

Returns the value of attribute mqtt_port.



4
5
6
# File 'lib/apiotics/configuration.rb', line 4

def mqtt_port
  @mqtt_port
end

#parentsObject

Returns the value of attribute parents.



4
5
6
# File 'lib/apiotics/configuration.rb', line 4

def parents
  @parents
end

#portalObject

Returns the value of attribute portal.



4
5
6
# File 'lib/apiotics/configuration.rb', line 4

def portal
  @portal
end

#private_keyObject

Returns the value of attribute private_key.



4
5
6
# File 'lib/apiotics/configuration.rb', line 4

def private_key
  @private_key
end

#public_keyObject

Returns the value of attribute public_key.



4
5
6
# File 'lib/apiotics/configuration.rb', line 4

def public_key
  @public_key
end

#pushObject

Returns the value of attribute push.



4
5
6
# File 'lib/apiotics/configuration.rb', line 4

def push
  @push
end

#redis_comms_connectionObject

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_metadataObject

Returns the value of attribute reduced_metadata.



4
5
6
# File 'lib/apiotics/configuration.rb', line 4

def 
  
end

#serverObject

Returns the value of attribute server.



4
5
6
# File 'lib/apiotics/configuration.rb', line 4

def server
  @server
end

#server_portObject

Returns the value of attribute server_port.



4
5
6
# File 'lib/apiotics/configuration.rb', line 4

def server_port
  @server_port
end

#server_typeObject

Returns the value of attribute server_type.



4
5
6
# File 'lib/apiotics/configuration.rb', line 4

def server_type
  @server_type
end

#targetsObject

Returns the value of attribute targets.



4
5
6
# File 'lib/apiotics/configuration.rb', line 4

def targets
  @targets
end

#tlsObject

Returns the value of attribute tls.



4
5
6
# File 'lib/apiotics/configuration.rb', line 4

def tls
  @tls
end

#verify_peerObject

Returns the value of attribute verify_peer.



4
5
6
# File 'lib/apiotics/configuration.rb', line 4

def verify_peer
  @verify_peer
end