Class: MassiveRecord::Wrapper::Cell

Inherits:
Object
  • Object
show all
Defined in:
lib/massive_record/wrapper/cell.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ Cell

Returns a new instance of Cell.



7
8
9
10
# File 'lib/massive_record/wrapper/cell.rb', line 7

def initialize(opts = {})
  self.value = opts[:value]
  self.created_at = opts[:created_at]
end

Instance Attribute Details

#created_atObject

Returns the value of attribute created_at.



5
6
7
# File 'lib/massive_record/wrapper/cell.rb', line 5

def created_at
  @created_at
end

#valueObject

Returns the value of attribute value.



4
5
6
# File 'lib/massive_record/wrapper/cell.rb', line 4

def value
  @value
end

Instance Method Details

#value_to_thriftObject



17
18
19
# File 'lib/massive_record/wrapper/cell.rb', line 17

def value_to_thrift
  value.force_encoding(Encoding::BINARY)
end