Sha256: 3885199b1f37af0a3f403bc70ca8112b6a6ea923af491bca50f73d9bf39d7d4b

Contents?: true

Size: 265 Bytes

Versions: 1

Compression:

Stored size: 265 Bytes

Contents

module Transcriber
  class Resource
    module Response
      def normalize(model, options = {})
        model.kind_of?(Enumerable) ?
          {entries: model.map(&:resource)}
         : model.resource
      end
      alias :resources :normalize
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
transcriber-0.0.3 lib/transcriber/resource/response.rb