object @invitation

attributes :id, :accepted

node :sender do |i|
  { :id => i.sender.id, :name => i.sender.name }
end

node :recipient do |i|
  { :id => i.receiver.id, :name => i.receiver.name }
end

node :band do |i|
  { :id => i.band.id, :name => i.band.name }
end