Class: Hecks::Adapters::DynamoDB::DropAll
- Inherits:
-
Object
- Object
- Hecks::Adapters::DynamoDB::DropAll
- Defined in:
- lib/drop_all.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(client:, domain:) ⇒ DropAll
constructor
A new instance of DropAll.
- #result ⇒ Object
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
#call ⇒ Object
11 12 13 14 15 |
# File 'lib/drop_all.rb', line 11 def call list_tables drop_tables self end |
#result ⇒ Object
17 18 19 |
# File 'lib/drop_all.rb', line 17 def result { tables: @tables } end |