Class: Webhookdb::DBAdapter::TableDescriptor
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods inherited from TypedStruct
#[], #_apply, #as_json, #change
Constructor Details
Returns a new instance of TableDescriptor.
91
92
93
94
95
96
|
# File 'lib/webhookdb/db_adapter.rb', line 91
def initialize(**kwargs)
super
self.typecheck!(:table, Table)
self.typecheck!(:columns, Array)
self.typecheck!(:indices, Array)
end
|
Instance Attribute Details
#columns ⇒ Array<Column>
105
106
107
|
# File 'lib/webhookdb/db_adapter.rb', line 105
def columns
@columns
end
|
#indices ⇒ Array<Index>
105
106
107
|
# File 'lib/webhookdb/db_adapter.rb', line 105
def indices
@indices
end
|
105
106
107
|
# File 'lib/webhookdb/db_adapter.rb', line 105
def table
@table
end
|
Instance Method Details
#_defaults ⇒ Object
105
106
107
|
# File 'lib/webhookdb/db_adapter.rb', line 105
def _defaults
return {indices: []}
end
|