Class: Bisu::Source::Bisu

Inherits:
Object
  • Object
show all
Defined in:
lib/bisu/source/bisu.rb

Instance Method Summary collapse

Constructor Details

#initialize(api_key, host) ⇒ Bisu

Returns a new instance of Bisu.



7
8
9
10
# File 'lib/bisu/source/bisu.rb', line 7

def initialize(api_key, host)
  @api_key = api_key
  @host = host
end

Instance Method Details

#to_i18Object



12
13
14
15
16
17
18
19
20
# File 'lib/bisu/source/bisu.rb', line 12

def to_i18
  Logger.info("Downloading dictionary from Bisu Platform...")

  hash = export

  Logger.info("Found #{hash.count} languages.")

  hash
end