Class: Hydra::RemoteIdentifier::RemoteService

Inherits:
Object
  • Object
show all
Defined in:
lib/hydra/remote_identifier/remote_service.rb

Overview

The RemoteService is responsible for delivering a payload to a remote identification minting service and returning an identifier.

It is responsible for assisting the construction and validation of a remote payload.

Instance Method Summary collapse

Instance Method Details

#call(payload) ⇒ Object

Raises:

  • (NotImplementedError)


15
16
17
18
# File 'lib/hydra/remote_identifier/remote_service.rb', line 15

def call(payload)
  raise NotImplementedError,
    "You must implement #{self.class}#call"
end

#valid_attribute?(attribute_name) ⇒ Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


10
11
12
13
# File 'lib/hydra/remote_identifier/remote_service.rb', line 10

def valid_attribute?(attribute_name)
  raise NotImplementedError,
    "You must implement #{self.class}#valid_attribute?"
end