summaryrefslogtreecommitdiff
path: root/fake-service/lib/pixelated_service/persona.rb
blob: c51974edcd42ff108c914a803d86bef585d0191a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
module PixelatedService
  class Persona < Struct.new :ident, :name, :signature, :address
    def to_json
      {
        ident: self.ident,
        name: self.name,
        signature: self.signature,
        address: self.address
      }.to_json
    end
  end
end