Class: Montague::API::Client

Inherits:
Base
  • Object
show all
Defined in:
lib/montague/api/client.rb

Overview

API client

Instance Method Summary collapse

Constructor Details

#initialize(config = {}) ⇒ Client

Returns a new instance of Client.

Parameters:

  • config (Hash) (defaults to: {})

Options Hash (config):

  • :api_url (String)

    URL of the SHERPA/RoMEO service (if it changes)

  • :api_key (String)

    API key of the SHERPA/RoMEO service user


9
10
11
# File 'lib/montague/api/client.rb', line 9

def initialize(config = {})
  super
end

Instance Method Details

#journalsMontague::API::Journal


14
15
16
# File 'lib/montague/api/client.rb', line 14

def journals
  Montague::API::Journal.new @config
end

#publishersMontague::API::Publisher


19
20
21
# File 'lib/montague/api/client.rb', line 19

def publishers
  Montague::API::Publisher.new @config
end