Class: HBase::Model::Record
Direct Known Subclasses
Column, ColumnDescriptor, Region, RegionDescriptor, Row, Scanner, TableDescriptor
Instance Method Summary collapse
-
#initialize(params) ⇒ Record
constructor
A new instance of Record.
Constructor Details
#initialize(params) ⇒ Record
Returns a new instance of Record.
4 5 6 7 8 9 |
# File 'lib/hbase/model.rb', line 4 def initialize (params) params.each do |key, value| name = key.to_s instance_variable_set("@#{name}", value) if respond_to?(name) end end |