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.
85
86
87
88
89
90
|
# File 'lib/webhookdb/db_adapter.rb', line 85
def initialize(**kwargs)
super
self.typecheck!(:table, Table)
self.typecheck!(:columns, Array)
self.typecheck!(:indices, Array)
end
|
Instance Attribute Details
#columns ⇒ Array<Column>
99
100
101
|
# File 'lib/webhookdb/db_adapter.rb', line 99
def columns
@columns
end
|
#indices ⇒ Array<Index>
99
100
101
|
# File 'lib/webhookdb/db_adapter.rb', line 99
def indices
@indices
end
|
99
100
101
|
# File 'lib/webhookdb/db_adapter.rb', line 99
def table
@table
end
|
Instance Method Details
#_defaults ⇒ Object
99
100
101
|
# File 'lib/webhookdb/db_adapter.rb', line 99
def _defaults
return {indices: []}
end
|