Class: Kcl::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/kcl/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Set default values



19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/kcl/config.rb', line 19

def initialize
  @aws_region              = nil
  @aws_access_key_id       = nil
  @aws_secret_access_key   = nil
  @dynamodb_endpoint       = 'https://localhost:4566'
  @dynamodb_table_name     = nil
  @dynamodb_read_capacity  = 10
  @dynamodb_write_capacity = 10
  @dynamodb_failover_seconds = 10
  @kinesis_endpoint        = 'https://localhost:4566'
  @kinesis_stream_name     = nil
  @logger                  = nil
  @max_lease_count         = 1
  @use_ssl                 = false
  @worker_count            = 1
end

Instance Attribute Details

#aws_access_key_idObject

Returns the value of attribute aws_access_key_id.



2
3
4
# File 'lib/kcl/config.rb', line 2

def aws_access_key_id
  @aws_access_key_id
end

#aws_regionObject

Returns the value of attribute aws_region.



2
3
4
# File 'lib/kcl/config.rb', line 2

def aws_region
  @aws_region
end

#aws_secret_access_keyObject

Returns the value of attribute aws_secret_access_key.



2
3
4
# File 'lib/kcl/config.rb', line 2

def aws_secret_access_key
  @aws_secret_access_key
end

#dynamodb_endpointObject

Returns the value of attribute dynamodb_endpoint.



2
3
4
# File 'lib/kcl/config.rb', line 2

def dynamodb_endpoint
  @dynamodb_endpoint
end

#dynamodb_failover_secondsObject

Returns the value of attribute dynamodb_failover_seconds.



2
3
4
# File 'lib/kcl/config.rb', line 2

def dynamodb_failover_seconds
  @dynamodb_failover_seconds
end

#dynamodb_read_capacityObject

Returns the value of attribute dynamodb_read_capacity.



2
3
4
# File 'lib/kcl/config.rb', line 2

def dynamodb_read_capacity
  @dynamodb_read_capacity
end

#dynamodb_table_nameObject

Returns the value of attribute dynamodb_table_name.



2
3
4
# File 'lib/kcl/config.rb', line 2

def dynamodb_table_name
  @dynamodb_table_name
end

#dynamodb_write_capacityObject

Returns the value of attribute dynamodb_write_capacity.



2
3
4
# File 'lib/kcl/config.rb', line 2

def dynamodb_write_capacity
  @dynamodb_write_capacity
end

#kinesis_endpointObject

Returns the value of attribute kinesis_endpoint.



2
3
4
# File 'lib/kcl/config.rb', line 2

def kinesis_endpoint
  @kinesis_endpoint
end

#kinesis_stream_nameObject

Returns the value of attribute kinesis_stream_name.



2
3
4
# File 'lib/kcl/config.rb', line 2

def kinesis_stream_name
  @kinesis_stream_name
end

#log_levelObject

Returns the value of attribute log_level.



2
3
4
# File 'lib/kcl/config.rb', line 2

def log_level
  @log_level
end

#loggerObject

Returns the value of attribute logger.



2
3
4
# File 'lib/kcl/config.rb', line 2

def logger
  @logger
end

#max_lease_countObject

Returns the value of attribute max_lease_count.



2
3
4
# File 'lib/kcl/config.rb', line 2

def max_lease_count
  @max_lease_count
end

#use_sslObject

Returns the value of attribute use_ssl.



2
3
4
# File 'lib/kcl/config.rb', line 2

def use_ssl
  @use_ssl
end

#worker_countObject

Returns the value of attribute worker_count.



2
3
4
# File 'lib/kcl/config.rb', line 2

def worker_count
  @worker_count
end