Class: RServiceBus2::AppResourceAWSDynamoDb

Inherits:
AppResource
  • Object
show all
Defined in:
lib/rservicebus2/appresource/awsdynamodb.rb

Overview

AppResourceAWSDynamoDb

Instance Attribute Summary

Attributes inherited from AppResource

#connection

Instance Method Summary collapse

Methods inherited from AppResource

#_connect, #begin, #commit, #initialize, #reconnect, #resource, #rollback

Constructor Details

This class inherits a constructor from RServiceBus2::AppResource

Instance Method Details

#connect(uri) ⇒ Object



8
9
10
11
12
# File 'lib/rservicebus2/appresource/awsdynamodb.rb', line 8

def connect(uri)
  region = uri.host

  Aws::DynamoDB::Client.new(region: region)
end

#finishedObject



14
15
16
# File 'lib/rservicebus2/appresource/awsdynamodb.rb', line 14

def finished
  RServiceBus2.rlog "#{self.class.name}. Finished"
end