Module: Billit::PaperworkCollectionModelRepresenter

Includes:
Roar::Representer::Feature::Hypermedia, Roar::Representer::JSON
Included in:
PaperworkCollection
Defined in:
lib/billit_representers/representers/paperwork_collection_model_representer.rb

Defined Under Namespace

Modules: Initializer

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



19
20
21
22
# File 'lib/billit_representers/representers/paperwork_collection_model_representer.rb', line 19

def self.included(klass)
  klass.send :prepend, Initializer
  klass.send :include, Roar::Representer::Feature::HttpVerbs
end

Instance Method Details

#paperworksObject



26
27
28
# File 'lib/billit_representers/representers/paperwork_collection_model_representer.rb', line 26

def paperworks
  collect
end