Class: Kcl::Config
- Inherits:
-
Object
- Object
- Kcl::Config
- Defined in:
- lib/kcl/config.rb
Instance Attribute Summary collapse
-
#aws_access_key_id ⇒ Object
Returns the value of attribute aws_access_key_id.
-
#aws_region ⇒ Object
Returns the value of attribute aws_region.
-
#aws_secret_access_key ⇒ Object
Returns the value of attribute aws_secret_access_key.
-
#dynamodb_endpoint ⇒ Object
Returns the value of attribute dynamodb_endpoint.
-
#dynamodb_failover_seconds ⇒ Object
Returns the value of attribute dynamodb_failover_seconds.
-
#dynamodb_read_capacity ⇒ Object
Returns the value of attribute dynamodb_read_capacity.
-
#dynamodb_table_name ⇒ Object
Returns the value of attribute dynamodb_table_name.
-
#dynamodb_write_capacity ⇒ Object
Returns the value of attribute dynamodb_write_capacity.
-
#kinesis_endpoint ⇒ Object
Returns the value of attribute kinesis_endpoint.
-
#kinesis_stream_name ⇒ Object
Returns the value of attribute kinesis_stream_name.
-
#log_level ⇒ Object
Returns the value of attribute log_level.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#max_lease_count ⇒ Object
Returns the value of attribute max_lease_count.
-
#use_ssl ⇒ Object
Returns the value of attribute use_ssl.
-
#worker_count ⇒ Object
Returns the value of attribute worker_count.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
Set default values.
Constructor Details
#initialize ⇒ Config
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_id ⇒ Object
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_region ⇒ Object
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_key ⇒ Object
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_endpoint ⇒ Object
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_seconds ⇒ Object
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_capacity ⇒ Object
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_name ⇒ Object
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_capacity ⇒ Object
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_endpoint ⇒ Object
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_name ⇒ Object
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_level ⇒ Object
Returns the value of attribute log_level.
2 3 4 |
# File 'lib/kcl/config.rb', line 2 def log_level @log_level end |
#logger ⇒ Object
Returns the value of attribute logger.
2 3 4 |
# File 'lib/kcl/config.rb', line 2 def logger @logger end |
#max_lease_count ⇒ Object
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_ssl ⇒ Object
Returns the value of attribute use_ssl.
2 3 4 |
# File 'lib/kcl/config.rb', line 2 def use_ssl @use_ssl end |
#worker_count ⇒ Object
Returns the value of attribute worker_count.
2 3 4 |
# File 'lib/kcl/config.rb', line 2 def worker_count @worker_count end |