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

Version Path
google-apis-generator-0.15.1 lib/google/apis/generator/templates/_representation_type.tmpl
google-apis-generator-0.14.0 lib/google/apis/generator/templates/_representation_type.tmpl
google-apis-generator-0.13.1 lib/google/apis/generator/templates/_representation_type.tmpl
google-apis-generator-0.13.0 lib/google/apis/generator/templates/_representation_type.tmpl
fluent-plugin-google-cloud-logging-on-prem-0.1.0 vendor/ruby/3.1.0/gems/google-apis-generator-0.12.0/lib/google/apis/generator/templates/_representation_type.tmpl
google-apis-generator-0.12.0 lib/google/apis/generator/templates/_representation_type.tmpl
google-apis-generator-0.11.1 lib/google/apis/generator/templates/_representation_type.tmpl
google-apis-generator-0.11.0 lib/google/apis/generator/templates/_representation_type.tmpl
google-apis-generator-0.10.0 lib/google/apis/generator/templates/_representation_type.tmpl
google-apis-generator-0.9.0 lib/google/apis/generator/templates/_representation_type.tmpl
google-apis-generator-0.8.0 lib/google/apis/generator/templates/_representation_type.tmpl
google-apis-generator-0.7.0 lib/google/apis/generator/templates/_representation_type.tmpl
google-apis-generator-0.6.0 lib/google/apis/generator/templates/_representation_type.tmpl
google-apis-generator-0.5.0 lib/google/apis/generator/templates/_representation_type.tmpl
google-apis-generator-0.4.1 lib/google/apis/generator/templates/_representation_type.tmpl
google-apis-generator-0.4.0 lib/google/apis/generator/templates/_representation_type.tmpl
google-apis-generator-0.3.0 lib/google/apis/generator/templates/_representation_type.tmpl
google-apis-generator-0.2.0 lib/google/apis/generator/templates/_representation_type.tmpl
google-api-client-0.52.0 lib/google/apis/generator/templates/_representation_type.tmpl
google-api-client-0.51.0 lib/google/apis/generator/templates/_representation_type.tmpl