Class: MassiveRecord::Wrapper::Cell
- Inherits:
-
Object
- Object
- MassiveRecord::Wrapper::Cell
- Defined in:
- lib/massive_record/wrapper/cell.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Cell
constructor
A new instance of Cell.
- #value_to_thrift ⇒ Object
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_at ⇒ Object
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 |
#value ⇒ Object
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_thrift ⇒ Object
17 18 19 |
# File 'lib/massive_record/wrapper/cell.rb', line 17 def value_to_thrift value.force_encoding(Encoding::BINARY) end |