Sha256: 79b91cca5e99b80f771fd3d6f96b7da7ecdf7e9fd8669c0a2a796348f52555ba

Contents?: true

Size: 566 Bytes

Versions: 5

Compression:

Stored size: 566 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::Feature::Hypermedia
        include Roar::Representer::JSON

        property :id
        property :name
        property :email

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
prx_client-0.3.1 lib/prx/representer/full/producer_representer.rb
prx_client-0.3.0 lib/prx/representer/full/producer_representer.rb
prx_client-0.2.2 lib/prx/representer/full/producer_representer.rb
prx_client-0.2.1 lib/prx/representer/full/producer_representer.rb
prx_client-0.2.0 lib/prx/representer/full/producer_representer.rb