Method: Nostr::Filter#to_h
- Defined in:
- lib/nostr/filter.rb
#to_h ⇒ Hash
Converts the filter to a hash, removing all empty attributes
149 150 151 152 153 154 155 156 157 158 159 160 |
# File 'lib/nostr/filter.rb', line 149 def to_h { ids:, authors:, kinds:, '#e': e, '#p': p, since:, until: self.until, limit: }.compact end |