Sha256: 87500ce44610e486bcf76d2ce66b3e899fb373e2e93b42946ba5d7906521cd51
Contents?: true
Size: 347 Bytes
Versions: 1
Compression:
Stored size: 347 Bytes
Contents
module <%= vendor.classify %> module Entities class <%= resource.classify %> < <%= vendor.classify %>::Entities::Base expose :id <% attributes_names.each do |name| %> expose :<%= name %> <% end %> with_options(format_with: :iso_timestamp) do expose :created_at expose :updated_at end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
grape-api-generator-0.1.0 | lib/generators/grape/templates/entities/resource.rb |