Class: CloudFormation::DynamoDB
- Defined in:
- lib/cloud_formation/dynamo_db.rb
Defined Under Namespace
Classes: Table
Instance Attribute Summary collapse
-
#tables ⇒ Object
Returns the value of attribute tables.
Instance Method Summary collapse
- #build_table {|table| ... } ⇒ Object
-
#initialize ⇒ DynamoDB
constructor
A new instance of DynamoDB.
Methods inherited from Base
Constructor Details
#initialize ⇒ DynamoDB
Returns a new instance of DynamoDB.
6 7 8 |
# File 'lib/cloud_formation/dynamo_db.rb', line 6 def initialize @tables = [] end |
Instance Attribute Details
#tables ⇒ Object
Returns the value of attribute tables.
4 5 6 |
# File 'lib/cloud_formation/dynamo_db.rb', line 4 def tables @tables end |
Instance Method Details
#build_table {|table| ... } ⇒ Object
10 11 12 13 14 15 |
# File 'lib/cloud_formation/dynamo_db.rb', line 10 def build_table &block table = Table.new yield table @tables << table table end |