class Quandl::Cassandra::Configuration
Attributes
batch_size[RW]
consistency[RW]
hosts[RW]
keyspace[RW]
read_consistency[RW]
write_consistency[RW]
Public Class Methods
new()
click to toggle source
# File lib/quandl/cassandra/configuration.rb, line 21 def initialize @hosts = ['localhost'] @consistency = :all @read_consistency = :one @write_consistency = :one @batch_size = 35 * 4 end
Public Instance Methods
attributes()
click to toggle source
# File lib/quandl/cassandra/configuration.rb, line 29 def attributes { hosts: hosts, consistency: consistency, keyspace: keyspace, batch_size: batch_size } end
to_h()
click to toggle source
# File lib/quandl/cassandra/configuration.rb, line 33 def to_h attributes end