Class: SchemaTransformer::Base
- Inherits:
-
Object
- Object
- SchemaTransformer::Base
- Defined in:
- lib/schema_transformer/base.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(base = File.expand_path("..", __FILE__), options = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(base = File.expand_path("..", __FILE__), options = {}) ⇒ Base
Returns a new instance of Base.
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/schema_transformer/base.rb', line 4 def initialize(base = File.("..", __FILE__), = {}) @base = base @db, @log, @mail = ActiveWrapper.setup( :base => @base, :env => ENV['RAILS_ENV'] || 'development', :log => "schema_transformer" ) @db.establish_connection @conn = ActiveRecord::Base.connection end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/schema_transformer/base.rb', line 3 def @options end |