Class: Cassandra::Keyspace

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

Instance Method Summary collapse

Instance Method Details

#with_fields(options) ⇒ Object



91
92
93
94
95
96
# File 'lib/cassandra_object/tasks/keyspace.rb', line 91

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