Class: Arison::Connection
- Inherits:
-
Object
- Object
- Arison::Connection
- Defined in:
- lib/arison/connection.rb
Instance Method Summary collapse
- #import(table, data) ⇒ Object
-
#initialize(config: DEFAULT_CONFIG_FILE_PATH, profile: DEFAULT_CONFIG_PROFILE) ⇒ Connection
constructor
A new instance of Connection.
Constructor Details
#initialize(config: DEFAULT_CONFIG_FILE_PATH, profile: DEFAULT_CONFIG_PROFILE) ⇒ Connection
Returns a new instance of Connection.
3 4 5 6 |
# File 'lib/arison/connection.rb', line 3 def initialize(config: DEFAULT_CONFIG_FILE_PATH, profile: DEFAULT_CONFIG_PROFILE) profile = Util.get_profile(config, profile) @core = Core.new(profile) end |
Instance Method Details
#import(table, data) ⇒ Object
8 9 10 |
# File 'lib/arison/connection.rb', line 8 def import(table, data) @core.import(table, data) end |