Class: Cranium::DSL::DatabaseDefinition

Inherits:
Object
  • Object
show all
Extended by:
AttributeDSL
Defined in:
lib/cranium/dsl/database_definition.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (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