Method: WikidotAPI::Client#initialize
- Defined in:
- lib/wikidot_api/client.rb
#initialize(app, key, opts = {}) ⇒ Client
Returns a new instance of Client.
6 7 8 9 10 11 12 |
# File 'lib/wikidot_api/client.rb', line 6 def initialize app, key, opts={} @app, @key = app, key @host = opts[:host] || "www.wikidot.com" @proto = opts[:proto] || "https" @port = opts[:port] || false @query_options = opts[:query_options] || false end |