Method: Parse.setup
- Defined in:
- lib/parse/client.rb
.setup(opts = {}) { ... } ⇒ Client
Helper method that users should call to setup the client stack. A block can be passed in order to do additional client configuration. To connect to a Parse server, you will need a minimum of an application_id, an api_key and a server_url. To connect to the server endpoint, you use the setup method below.
577 578 579 580 581 582 583 |
# File 'lib/parse/client.rb', line 577 def self.setup(opts = {}) if block_given? Parse::Client.new(opts, &Proc.new) else Parse::Client.new(opts) end end |