Class: Webhookdb::DBAdapter::Table

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) ⇒ Table

Returns a new instance of Table.



30
31
32
33
34
# File 'lib/webhookdb/db_adapter.rb', line 30

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



28
29
30
# File 'lib/webhookdb/db_adapter.rb', line 28

def name
  @name
end

#schemaObject (readonly)

Returns the value of attribute schema.



28
29
30
# File 'lib/webhookdb/db_adapter.rb', line 28

def schema
  @schema
end