Class: Cassandra::Keyspace

Inherits:
Object show all
Defined in:
lib/active_column/tasks/keyspace.rb

Instance Method Summary collapse

Instance Method Details

#with_fields(options) ⇒ Object



87
88
89
90
91
92
# File 'lib/active_column/tasks/keyspace.rb', line 87

def with_fields(options)
  struct_fields.collect { |f| f[1][:name] }.each do |f|
    send("#{f}=", options[f.to_sym] || options[f.to_s])
  end
  self
end