Class: CassandraObject::Types::ArrayType::DirtyArray

Inherits:
Array
  • Object
show all
Defined in:
lib/cassandra_object/types/array_type.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(record, name, array, options) ⇒ DirtyArray

Returns a new instance of DirtyArray.



6
7
8
9
10
11
12
13
# File 'lib/cassandra_object/types/array_type.rb', line 6

def initialize(record, name, array, options)
  @record   = record
  @name     = name.to_s
  @options  = options

  super(array)
  setify!
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/cassandra_object/types/array_type.rb', line 5

def name
  @name
end

#optionsObject

Returns the value of attribute options.



5
6
7
# File 'lib/cassandra_object/types/array_type.rb', line 5

def options
  @options
end

#recordObject

Returns the value of attribute record.



5
6
7
# File 'lib/cassandra_object/types/array_type.rb', line 5

def record
  @record
end

Instance Method Details

#<<(obj) ⇒ Object



15
16
17
18
19
20
# File 'lib/cassandra_object/types/array_type.rb', line 15

def <<(obj)
  modifying do
    super
    setify!
  end
end

#delete(obj) ⇒ Object



22
23
24
25
26
# File 'lib/cassandra_object/types/array_type.rb', line 22

def delete(obj)
  modifying do
    super
  end
end