Sha256: 97dda37ba22ab1db0a9e2051b271c5cd3bf637033e9ad184f09f8cc1ebae4d06

Contents?: true

Size: 670 Bytes

Versions: 177

Compression:

Stored size: 670 Bytes

Contents

<% if cls.type == 'object' -%>

class <%= cls.generated_class_name %>
  class Representation < Google::Apis::Core::JsonRepresentation; end
<%   for child_class in cls.properties.values -%>
<%     if child_class._ref.nil? -%>
<%= indent(include('representation_stub', :cls => child_class), 2) -%>
<%     end -%>
<%   end -%>

  include Google::Apis::Core::JsonObjectSupport
end
<% elsif cls.items && cls.items._ref.nil? -%>
<%= include('representation_stub', :cls => cls.items, :api => api) -%>
<% elsif cls.additional_properties && cls.additional_properties._ref.nil? -%>
<%= include('representation_stub', :cls => cls.additional_properties, :api => api) -%>
<% end -%>

Version data entries

177 entries across 177 versions & 4 rubygems

Version Path
google-api-client-0.40.1 lib/google/apis/generator/templates/_representation_stub.tmpl
google-api-client-0.40.0 lib/google/apis/generator/templates/_representation_stub.tmpl
google-api-client-0.39.5 lib/google/apis/generator/templates/_representation_stub.tmpl
google-api-client-0.39.4 lib/google/apis/generator/templates/_representation_stub.tmpl
google-api-client-0.39.3 lib/google/apis/generator/templates/_representation_stub.tmpl
google-api-client-0.39.2 lib/google/apis/generator/templates/_representation_stub.tmpl
google-api-client-0.39.1 lib/google/apis/generator/templates/_representation_stub.tmpl
google-api-client-0.39.0 lib/google/apis/generator/templates/_representation_stub.tmpl
google-api-client-0.38.0 lib/google/apis/generator/templates/_representation_stub.tmpl
google-api-client-0.37.3 lib/google/apis/generator/templates/_representation_stub.tmpl
google-api-client-0.37.2 lib/google/apis/generator/templates/_representation_stub.tmpl
google-api-client-0.37.1 lib/google/apis/generator/templates/_representation_stub.tmpl
google-api-client-0.37.0 lib/google/apis/generator/templates/_representation_stub.tmpl
google-api-client-0.36.4 lib/google/apis/generator/templates/_representation_stub.tmpl
google-api-client-0.36.3 lib/google/apis/generator/templates/_representation_stub.tmpl
google-api-client-0.36.2 lib/google/apis/generator/templates/_representation_stub.tmpl
google-api-client-0.36.1 lib/google/apis/generator/templates/_representation_stub.tmpl
google-api-client-0.36.0 lib/google/apis/generator/templates/_representation_stub.tmpl
google-api-client-0.35.0 lib/google/apis/generator/templates/_representation_stub.tmpl
google-api-client-0.34.1 lib/google/apis/generator/templates/_representation_stub.tmpl