Class: SiteSearch::PublicationsAdapter::Result
- Inherits:
-
Data
- Object
- Data
- SiteSearch::PublicationsAdapter::Result
- Defined in:
- app/services/site_search/publications_adapter.rb
Overview
One page of publications plus the Pagy that describes where it sits.
degraded exists for shape parity with the engine adapters; our own
database either answers or raises, so it is always false here.
Instance Attribute Summary collapse
-
#degraded ⇒ Object
readonly
Returns the value of attribute degraded.
-
#items ⇒ Object
readonly
Returns the value of attribute items.
-
#pagy ⇒ Object
readonly
Returns the value of attribute pagy.
Instance Method Summary collapse
-
#initialize(items: [], pagy: nil, degraded: false) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(items: [], pagy: nil, degraded: false) ⇒ Result
Returns a new instance of Result.
26 |
# File 'app/services/site_search/publications_adapter.rb', line 26 def initialize(items: [], pagy: nil, degraded: false) = super |
Instance Attribute Details
#degraded ⇒ Object (readonly)
Returns the value of attribute degraded
22 23 24 |
# File 'app/services/site_search/publications_adapter.rb', line 22 def degraded @degraded end |
#items ⇒ Object (readonly)
Returns the value of attribute items
22 23 24 |
# File 'app/services/site_search/publications_adapter.rb', line 22 def items @items end |
#pagy ⇒ Object (readonly)
Returns the value of attribute pagy
22 23 24 |
# File 'app/services/site_search/publications_adapter.rb', line 22 def pagy @pagy end |