Module: Taskrabbit::Client::ClassMethods

Defined in:
lib/taskrabbit/client.rb

Instance Method Summary collapse

Instance Method Details

#collection_transformersObject



12
13
14
15
16
17
18
# File 'lib/taskrabbit/client.rb', line 12

def collection_transformers
  @collection_transformers ||= Hash.new do |h, k|
    h[k] = Class.new(Collection).tap do |klass|
      klass.transformer_for :items, k
    end
  end
end