Method: CONTENTdmAPI::Request#initialize

Defined in:
lib/contentdm_api/request.rb

#initialize(base_url: '', client: HTTP, service: Service.new) ⇒ Void

Parameters:

  • base_url (String) (defaults to: '')

    URL to the CONTENTdm API “CdmServer.com:port/dmwebservices/index.php

  • client (Object) (defaults to: HTTP)

    An HTTP client to make requests of the API

  • service (Object) (defaults to: Service.new)

    A class to tell the Request class which function, params and format to request of the CONTENTdm API



14
15
16
17
18
# File 'lib/contentdm_api/request.rb', line 14

def initialize(base_url: '', client: HTTP, service: Service.new)
  @base_url = base_url
  @client   = client
  @service  = service
end