Sha256: 0d1eefcf3bd54b2644762eddc8d603a7be34b5c96a1a470c59cdfb5cb413ed4c

Contents?: true

Size: 188 Bytes

Versions: 4

Compression:

Stored size: 188 Bytes

Contents

module API
  module Entities
    class <%= res_name.classify %> < Grape::Entity
      expose :id
<% res_attrs.each_key do |name| -%>
      expose :<%= name %>
<% end -%>
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
grapethor-0.2.3 lib/grapethor/templates/resource/api/entities/%res_name%.rb.tt
grapethor-0.2.2 lib/grapethor/templates/resource/api/entities/%res_name%.rb.tt
grapethor-0.2.1 lib/grapethor/templates/resource/api/entities/%res_name%.rb.tt
grapethor-0.2.0 lib/grapethor/templates/resource/api/entities/%res_name%.rb.tt