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.
89
90
91
92
93
94
|
# File 'lib/webhookdb/db_adapter.rb', line 89
def initialize(**kwargs)
super
self.typecheck!(:table, Table)
self.typecheck!(:columns, Array)
self.typecheck!(:indices, Array)
end
|
Instance Attribute Details
#columns ⇒ Array<Column>
103
104
105
|
# File 'lib/webhookdb/db_adapter.rb', line 103
def columns
@columns
end
|
#indices ⇒ Array<Index>
103
104
105
|
# File 'lib/webhookdb/db_adapter.rb', line 103
def indices
@indices
end
|
103
104
105
|
# File 'lib/webhookdb/db_adapter.rb', line 103
def table
@table
end
|
Instance Method Details
#_defaults ⇒ Object
103
104
105
|
# File 'lib/webhookdb/db_adapter.rb', line 103
def _defaults
return {indices: []}
end
|