Class: ApioticsFactory::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/apiotics_factory/configuration.rb', line 6

def initialize
  @public_key = nil
  @private_key = nil
  @portal = "https://portal.apiotics.com/"
  @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

#interface_kindsObject

Returns the value of attribute interface_kinds.



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

def interface_kinds
  @interface_kinds
end

#portalObject

Returns the value of attribute portal.



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

def portal
  @portal
end

#private_keyObject

Returns the value of attribute private_key.



4
5
6
# File 'lib/apiotics_factory/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_factory/configuration.rb', line 4

def public_key
  @public_key
end