Method: TypeformData::Client#initialize
- Defined in:
- lib/typeform_data/client.rb
#initialize(api_key:, logger: nil) ⇒ Client
For the sake of usability, we’re breaking convention here and accepting an API key as the first parameter instead of an instance of TypeformData::Config. ruby-doc.org/stdlib-2.1.0/libdoc/logger/rdoc/Logger.html)
12 13 14 |
# File 'lib/typeform_data/client.rb', line 12 def initialize(api_key:, logger: nil) @config = TypeformData::Config.new(api_key: api_key, logger: logger) end |