Skip to content

Commit

Permalink
Add facets and metadata to specialist document model
Browse files Browse the repository at this point in the history
  • Loading branch information
leenagupte committed Jan 24, 2025
1 parent 90dfd7b commit 4b7f7e0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/models/specialist_document.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
class SpecialistDocument < ContentItem
attr_reader :continuation_link, :finder, :headers, :protection_type, :will_continue_on
attr_reader :continuation_link, :facets, :finder, :headers, :metadata,
:protection_type, :will_continue_on

def initialize(content_store_response)
super(content_store_response)

@continuation_link = content_store_hash.dig("details", "metadata", "continuation_link")
@facets = content_store_hash.dig("links", "finder", 0, "details", "facets")
@metadata = content_store_hash["details"]["metadata"]
@finder = content_store_hash.dig("links", "finder", 0)
@protection_type = content_store_hash.dig("details", "metadata", "protection_type")
@will_continue_on = content_store_hash.dig("details", "metadata", "will_continue_on")
Expand Down

0 comments on commit 4b7f7e0

Please sign in to comment.