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.



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

def initialize(**kwargs)
  super
  self.typecheck!(:name, Symbol)
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



15
16
17
# File 'lib/webhookdb/db_adapter.rb', line 15

def name
  @name
end