Class: Dymos::Client
- Inherits:
-
Object
- Object
- Dymos::Client
- Defined in:
- lib/dymos/client.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
- #command(name, params) ⇒ Object
-
#initialize(params = {}) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(params = {}) ⇒ Client
Returns a new instance of Client.
7 8 9 10 |
# File 'lib/dymos/client.rb', line 7 def initialize(params={}) config = Aws.config.merge params @client ||= Aws::DynamoDB::Client.new(config) end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
5 6 7 |
# File 'lib/dymos/client.rb', line 5 def client @client end |
Instance Method Details
#command(name, params) ⇒ Object
12 13 14 |
# File 'lib/dymos/client.rb', line 12 def command(name, params) @client.send name, params end |