Sha256: 03e89abb0d4184f66f5b8b5f95c05273652ff42f4c1dbf92d6590ad9dd5841b6

Contents?: true

Size: 565 Bytes

Versions: 4

Compression:

Stored size: 565 Bytes

Contents

require 'roar/representer'
require 'roar/representer/json'
require 'roar/representer/feature/hypermedia'

require "prx/representer/min/user_representer"

module PRX
  module Representer
    module Full
      module ProducerRepresenter
        include Roar::Representer::JSON
        include Roar::Representer::Feature::Hypermedia

        property :id
        property :name
        property :email

        property :user,
                 :class  => PRX::Model::User,
                 :extend => PRX::Representer::Min::UserRepresenter
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
prx_client-0.1.3 lib/prx/representer/full/producer_representer.rb
prx_client-0.1.2 lib/prx/representer/full/producer_representer.rb
prx_client-0.1.1 lib/prx/representer/full/producer_representer.rb
prx_client-0.1.0 lib/prx/representer/full/producer_representer.rb