Class: Arison::Connection

Inherits:
Object
  • Object
show all
Defined in:
lib/arison/connection.rb

Instance Method Summary collapse

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