Skip to content

Commit

Permalink
Fixed the scope issue for the private method (#167)
Browse files Browse the repository at this point in the history
* Fixed the scope issue for the private method

* Moved the method at common place.
  • Loading branch information
ashwinisukale authored Oct 24, 2023
1 parent 7b3e8cd commit 9c765ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/bolognese/metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,6 @@ def descriptions
@descriptions ||= meta.fetch("descriptions", nil)
end

def abstract_description
# Fetch the first description with descriptionType "Abstract"
@abstract_description ||= descriptions&.find { |d| d["descriptionType"] == "Abstract" }
end

def rights_list
@rights_list ||= meta.fetch("rights_list", nil)
end
Expand Down
5 changes: 5 additions & 0 deletions lib/bolognese/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1410,5 +1410,10 @@ def dfg_ids_to_fos(dfg_ids)
}
end
end

def abstract_description
# Fetch the first description with descriptionType "Abstract"
descriptions&.find { |d| d["descriptionType"] == "Abstract" }
end
end
end

0 comments on commit 9c765ab

Please sign in to comment.