Sha256: b61ddfab8366a6f9d7a46c4ad247fc57dd0bd8edaa618ce88fcfc57103bc089c
Contents?: true
Size: 448 Bytes
Versions: 185
Compression:
Stored size: 448 Bytes
Contents
<% if type.type == 'array' -%> <%= lead %>:class => Array do include Representable::JSON::Collection items<%= include('representation_type', :lead => ' ' , :type => type.items, :api => api) %> end <% elsif ['date', 'date-time'].include?(type.format) -%> <%= lead %>type: <%= type.generated_type %> <% elsif type.type == 'object' -%> <%= lead %>class: <%= type.generated_type %>, decorator: <%= type.generated_type %>::Representation <% end -%>
Version data entries
185 entries across 185 versions & 4 rubygems