Method: Meshchat::Node.as_json
- Defined in:
- lib/meshchat/models/node.rb
.as_json ⇒ Object
37 38 39 40 41 42 43 44 |
# File 'lib/meshchat/models/node.rb', line 37 def as_json # must also include ourselves # so that we can pass our own public key # to those who don't have it others = all.map(&:as_json) me = APP_CONFIG.user.identity_as_json others << me end |