Sha256: fb04b974f9f10d245879d1f03a4aeb93289e96370cec8ac8cd74defdbe4e3497
Contents?: true
Size: 769 Bytes
Versions: 3
Compression:
Stored size: 769 Bytes
Contents
# frozen_string_literal: true module Genderize module Io module Batch class Lookup < Genderize::Io::Base def initialize(name, host: DEFAULT_HOST, country_id: nil, language_id: nil) super(name, host: host, country_id: country_id, language_id: language_id) @data = { 'rate_limits' => {}, 'responses' => [] } end def determine return @data unless @request.nil? @request = generate_request @data['responses'] = generate_data @data['rate_limits'] = generate_rate_limits end private def param_name @name.map.with_index { |name, i| "name[#{i}]=#{name}" }.join('&') end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
genderize-io-1.1.0 | lib/genderize/io/batch/lookup.rb |
genderize-io-1.0.1 | lib/genderize/io/batch/lookup.rb |
genderize-io-1.0.0 | lib/genderize/io/batch/lookup.rb |