Class: Cranium::DSL::DatabaseDefinition
- Inherits:
-
Object
- Object
- Cranium::DSL::DatabaseDefinition
- Extended by:
- AttributeDSL
- Defined in:
- lib/cranium/dsl/database_definition.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name) ⇒ DatabaseDefinition
constructor
A new instance of DatabaseDefinition.
Methods included from AttributeDSL
define_array_attribute, define_attribute, define_boolean_attribute
Constructor Details
#initialize(name) ⇒ DatabaseDefinition
Returns a new instance of DatabaseDefinition.
15 16 17 18 19 |
# File 'lib/cranium/dsl/database_definition.rb', line 15 def initialize(name) @name = name @retry_count = 0 @retry_delay = 0 end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/cranium/dsl/database_definition.rb', line 7 def name @name end |
Instance Method Details
#==(other) ⇒ Object
23 24 25 |
# File 'lib/cranium/dsl/database_definition.rb', line 23 def ==(other) name == other.name and connect_to == other.connect_to end |