Class: Cassandra::ColumnFamily

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

Instance Method Summary collapse

Instance Method Details

#with_fields(options) ⇒ Object



67
68
69
70
71
72
# File 'lib/active_column/tasks/column_family.rb', line 67

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