Class: LedgerSync::Adaptors::Searcher
- Inherits:
-
Object
- Object
- LedgerSync::Adaptors::Searcher
- Includes:
- Mixins::InferLedgerSerializerMixin, Mixins::InferResourceClassMixin, SimplySerializable::Mixin
- Defined in:
- lib/ledger_sync/adaptors/searcher.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#adaptor ⇒ Object
readonly
Returns the value of attribute adaptor.
-
#pagination ⇒ Object
readonly
Returns the value of attribute pagination.
-
#query ⇒ Object
readonly
Returns the value of attribute query.
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Instance Method Summary collapse
-
#initialize(adaptor:, query:, pagination: {}) ⇒ Searcher
constructor
A new instance of Searcher.
- #next_searcher ⇒ Object
- #previous_searcher ⇒ Object
- #resources ⇒ Object
- #search ⇒ Object
Methods included from Mixins::InferLedgerSerializerMixin
Methods included from Mixins::InferResourceClassMixin
Constructor Details
#initialize(adaptor:, query:, pagination: {}) ⇒ Searcher
Returns a new instance of Searcher.
22 23 24 25 26 |
# File 'lib/ledger_sync/adaptors/searcher.rb', line 22 def initialize(adaptor:, query:, pagination: {}) @adaptor = adaptor @query = query @pagination = pagination end |
Instance Attribute Details
#adaptor ⇒ Object (readonly)
Returns the value of attribute adaptor.
10 11 12 |
# File 'lib/ledger_sync/adaptors/searcher.rb', line 10 def adaptor @adaptor end |
#pagination ⇒ Object (readonly)
Returns the value of attribute pagination.
10 11 12 |
# File 'lib/ledger_sync/adaptors/searcher.rb', line 10 def pagination @pagination end |
#query ⇒ Object (readonly)
Returns the value of attribute query.
10 11 12 |
# File 'lib/ledger_sync/adaptors/searcher.rb', line 10 def query @query end |
#request ⇒ Object (readonly)
Returns the value of attribute request.
10 11 12 |
# File 'lib/ledger_sync/adaptors/searcher.rb', line 10 def request @request end |
Instance Method Details
#next_searcher ⇒ Object
28 29 30 |
# File 'lib/ledger_sync/adaptors/searcher.rb', line 28 def next_searcher raise NotImplementedError end |
#previous_searcher ⇒ Object
32 33 34 |
# File 'lib/ledger_sync/adaptors/searcher.rb', line 32 def previous_searcher raise NotImplementedError end |
#resources ⇒ Object
36 37 38 |
# File 'lib/ledger_sync/adaptors/searcher.rb', line 36 def resources raise NotImplementedError end |
#search ⇒ Object
40 41 42 |
# File 'lib/ledger_sync/adaptors/searcher.rb', line 40 def search @search ||= success end |