Class: Webhookdb::DBAdapter::Schema
- Inherits:
-
TypedStruct
- Object
- TypedStruct
- Webhookdb::DBAdapter::Schema
- Defined in:
- lib/webhookdb/db_adapter.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(**kwargs) ⇒ Schema
constructor
A new instance of Schema.
Methods inherited from TypedStruct
#[], #_apply, #_defaults, #as_json, #change
Constructor Details
#initialize(**kwargs) ⇒ Schema
Returns a new instance of Schema.
21 22 23 24 |
# File 'lib/webhookdb/db_adapter.rb', line 21 def initialize(**kwargs) super self.typecheck!(:name, Symbol) end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
19 20 21 |
# File 'lib/webhookdb/db_adapter.rb', line 19 def name @name end |