Class: Open311::Client

Inherits:
Object
  • Object
show all
Includes:
Request, Service
Defined in:
lib/open311/client.rb,
lib/open311/client/request.rb,
lib/open311/client/service.rb,
lib/open311/client/connection.rb

Defined Under Namespace

Modules: Request, Service

Instance Method Summary collapse

Methods included from Service

#get_service_request, #post_service_request, #request_id_from_token, #service_definition, #service_list, #service_requests

Methods included from Request

#delete, #get, #post, #put

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.



9
10
11
12
13
14
# File 'lib/open311/client.rb', line 9

def initialize(options = {})
  options = Open311.options.merge(options)
  Configuration::VALID_OPTIONS_KEYS.each do |key|
    send("#{key}=", options[key])
  end
end