Class: Dyna::DSL::DynamoDB
- Inherits:
-
Object
- Object
- Dyna::DSL::DynamoDB
- Includes:
- TemplateHelper
- Defined in:
- lib/dyna/dsl/table.rb,
lib/dyna/dsl/dynamo_db.rb
Defined Under Namespace
Classes: Table
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(context, tables, &block) ⇒ DynamoDB
constructor
A new instance of DynamoDB.
Methods included from TemplateHelper
Constructor Details
#initialize(context, tables, &block) ⇒ DynamoDB
Returns a new instance of DynamoDB.
8 9 10 11 12 13 14 15 |
# File 'lib/dyna/dsl/dynamo_db.rb', line 8 def initialize(context, tables, &block) @context = context @result = OpenStruct.new({ :tables => tables, }) instance_eval(&block) end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
6 7 8 |
# File 'lib/dyna/dsl/dynamo_db.rb', line 6 def result @result end |