Module: Billit::TableCollectionRepresenter

Includes:
Roar::Representer::Feature::Hypermedia, Roar::Representer::JSON, Roar::Representer::JSON::HAL
Defined in:
lib/billit_representers_argentina/representers/table_collection_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_argentina/representers/table_collection_representer.rb', line 19

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

Instance Method Details

#tablesObject



26
27
28
# File 'lib/billit_representers_argentina/representers/table_collection_representer.rb', line 26

def tables
  collect
end