Sha256: e3b8c4d17cfffea26ecec8f5bd862b4cb735e1b620d05a39ea6eb8075495fa82

Contents?: true

Size: 283 Bytes

Versions: 5

Compression:

Stored size: 283 Bytes

Contents

require 'roar/representer/json'

module Billit
  module BillCollectionRepresenter
    include Roar::Representer::JSON
    include Roar::Representer::Feature::Hypermedia

    collection :bills, :extend => BillRepresenter, :class => Bill

    def bills
      collect
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
billit_representers-0.3.3 lib/billit_representers/representers/bill_collection_representer.rb
billit_representers-0.3.2 lib/billit_representers/representers/bill_collection_representer.rb
billit_representers-0.3.1 lib/billit_representers/representers/bill_collection_representer.rb
billit_representers-0.3.0 lib/billit_representers/representers/bill_collection_representer.rb
billit_representers-0.2.0 lib/billit_representers/representers/bill_collection_representer.rb