Class: Hecks::Adapters::DynamoDB::DropAll

Inherits:
Object
  • Object
show all
Defined in:
lib/drop_all.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:, domain:) ⇒ DropAll

Returns a new instance of DropAll.



5
6
7
8
9
# File 'lib/drop_all.rb', line 5

def initialize(client:, domain:)
  @client = client
  @domain = domain
  load(domain.spec_path)
end

Instance Method Details

#callObject



11
12
13
14
15
# File 'lib/drop_all.rb', line 11

def call
  list_tables
  drop_tables
  self
end

#resultObject



17
18
19
# File 'lib/drop_all.rb', line 17

def result
  { tables: @tables }
end