Class: Metadata::TableMeta
- Inherits:
-
Object
- Object
- Metadata::TableMeta
- Defined in:
- lib/tablestore/metadata.rb
Instance Attribute Summary collapse
-
#schema_of_primary_key ⇒ Object
Returns the value of attribute schema_of_primary_key.
-
#table_name ⇒ Object
Returns the value of attribute table_name.
Instance Method Summary collapse
-
#initialize(table_name, schema_of_primary_key) ⇒ TableMeta
constructor
A new instance of TableMeta.
Constructor Details
#initialize(table_name, schema_of_primary_key) ⇒ TableMeta
Returns a new instance of TableMeta.
45 46 47 48 49 |
# File 'lib/tablestore/metadata.rb', line 45 def initialize(table_name, schema_of_primary_key) # schema_of_primary_key: [('PK0', 'STRING'), ('PK1', 'INTEGER'), ...] self.table_name = table_name self.schema_of_primary_key = schema_of_primary_key end |
Instance Attribute Details
#schema_of_primary_key ⇒ Object
Returns the value of attribute schema_of_primary_key.
44 45 46 |
# File 'lib/tablestore/metadata.rb', line 44 def schema_of_primary_key @schema_of_primary_key end |
#table_name ⇒ Object
Returns the value of attribute table_name.
44 45 46 |
# File 'lib/tablestore/metadata.rb', line 44 def table_name @table_name end |