Class: MassiveRecord::Wrapper::ColumnFamiliesCollection
- Inherits:
-
Array
- Object
- Array
- MassiveRecord::Wrapper::ColumnFamiliesCollection
- Defined in:
- lib/massive_record/wrapper/column_families_collection.rb
Instance Attribute Summary collapse
-
#table ⇒ Object
Returns the value of attribute table.
Instance Method Summary collapse
Instance Attribute Details
#table ⇒ Object
Returns the value of attribute table.
5 6 7 |
# File 'lib/massive_record/wrapper/column_families_collection.rb', line 5 def table @table end |
Instance Method Details
#create(column_family, opts = {}) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/massive_record/wrapper/column_families_collection.rb', line 7 def create(column_family, opts = {}) if column_family.is_a?(ADAPTER::ColumnFamily) self.push(column_family) else self.push(ADAPTER::ColumnFamily.new(column_family, opts)) end true end |