Class: BridgetownNotion::Parsers::TagsParser
- Inherits:
-
Object
- Object
- BridgetownNotion::Parsers::TagsParser
- Defined in:
- lib/bridgetown_notion/parsers/tags_parser.rb
Class Method Summary collapse
Class Method Details
.parse(post) ⇒ Object
6 7 8 9 |
# File 'lib/bridgetown_notion/parsers/tags_parser.rb', line 6 def self.parse(post) = (post.dig("properties", "tags", "multi_select") || []) .map { |t| t["name"] }.join(" ") end |