Class: Webhookdb::DBAdapter::Schema

Inherits:
TypedStruct show all
Defined in:
lib/webhookdb/db_adapter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



19
20
21
# File 'lib/webhookdb/db_adapter.rb', line 19

def name
  @name
end