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.
58 59 60 |
# File 'lib/webhookdb/db_adapter.rb', line 58 def name @name end |
#table ⇒ Object (readonly)
Returns the value of attribute table.
58 59 60 |
# File 'lib/webhookdb/db_adapter.rb', line 58 def table @table end |
#targets ⇒ Object (readonly)
Returns the value of attribute targets.
58 59 60 |
# File 'lib/webhookdb/db_adapter.rb', line 58 def targets @targets end |
#unique ⇒ Object (readonly)
Returns the value of attribute unique.
58 59 60 |
# File 'lib/webhookdb/db_adapter.rb', line 58 def unique @unique end |
#where ⇒ Object (readonly)
Returns the value of attribute where.
58 59 60 |
# File 'lib/webhookdb/db_adapter.rb', line 58 def where @where end |
Instance Method Details
#_defaults ⇒ Object
68 69 70 |
# File 'lib/webhookdb/db_adapter.rb', line 68 def _defaults return {unique: false} end |