Class: Webhookdb::DBAdapter::Index
- Inherits:
-
TypedStruct
- Object
- TypedStruct
- Webhookdb::DBAdapter::Index
- Defined in:
- lib/webhookdb/db_adapter.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#table ⇒ Object
readonly
Returns the value of attribute table.
-
#targets ⇒ Object
readonly
Returns the value of attribute targets.
-
#unique ⇒ Object
readonly
Returns the value of attribute unique.
-
#where ⇒ Object
readonly
Returns the value of attribute where.
Instance Method Summary collapse
- #_defaults ⇒ Object
-
#initialize(**kwargs) ⇒ Index
constructor
A new instance of Index.
Methods inherited from TypedStruct
#[], #_apply, #as_json, #change
Constructor Details
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
62 63 64 |
# File 'lib/webhookdb/db_adapter.rb', line 62 def name @name end |
#table ⇒ Object (readonly)
Returns the value of attribute table.
62 63 64 |
# File 'lib/webhookdb/db_adapter.rb', line 62 def table @table end |
#targets ⇒ Object (readonly)
Returns the value of attribute targets.
62 63 64 |
# File 'lib/webhookdb/db_adapter.rb', line 62 def targets @targets end |
#unique ⇒ Object (readonly)
Returns the value of attribute unique.
62 63 64 |
# File 'lib/webhookdb/db_adapter.rb', line 62 def unique @unique end |
#where ⇒ Object (readonly)
Returns the value of attribute where.
62 63 64 |
# File 'lib/webhookdb/db_adapter.rb', line 62 def where @where end |
Instance Method Details
#_defaults ⇒ Object
72 73 74 |
# File 'lib/webhookdb/db_adapter.rb', line 72 def _defaults return {unique: false} end |