Class: PupilfirstXapi::Outbox
- Inherits:
-
Object
- Object
- PupilfirstXapi::Outbox
- Defined in:
- lib/pupilfirst_xapi/outbox.rb
Defined Under Namespace
Classes: Job
Class Method Summary collapse
Instance Method Summary collapse
- #call(**payload) ⇒ Object
-
#initialize(lrs:, repository:, uri_for:) ⇒ Outbox
constructor
A new instance of Outbox.
Constructor Details
#initialize(lrs:, repository:, uri_for:) ⇒ Outbox
Returns a new instance of Outbox.
29 30 31 32 33 |
# File 'lib/pupilfirst_xapi/outbox.rb', line 29 def initialize(lrs:, repository:, uri_for:) @lrs = lrs @repository = repository @uri_for = uri_for end |
Class Method Details
Instance Method Details
#call(**payload) ⇒ Object
35 36 37 |
# File 'lib/pupilfirst_xapi/outbox.rb', line 35 def call(**payload) @lrs.call(statement_for(**payload)) end |