Method: Nostrb::SQLite::Reader.hydrate
- Defined in:
- lib/nostrb/sqlite.rb
.hydrate(hash) ⇒ Object
parse the JSON tags into a Ruby array
296 297 298 299 |
# File 'lib/nostrb/sqlite.rb', line 296 def self.hydrate(hash) hash["tags"] = Nostrb.parse(hash.fetch("tags")) hash end |