Sha256: c5bfa1dfda38fa4e2d5e73117e09d823e884583ad478c0b2ad909a3097bb6e3a

Contents?: true

Size: 621 Bytes

Versions: 8

Compression:

Stored size: 621 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 -%>
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

8 entries across 8 versions & 1 rubygems

Version Path
google-api-client-0.9.2 lib/google/apis/generator/templates/_representation_stub.tmpl
google-api-client-0.9.1 lib/google/apis/generator/templates/_representation_stub.tmpl
google-api-client-0.9 lib/google/apis/generator/templates/_representation_stub.tmpl
google-api-client-0.9.pre5 lib/google/apis/generator/templates/_representation_stub.tmpl
google-api-client-0.9.pre4 lib/google/apis/generator/templates/_representation_stub.tmpl
google-api-client-0.9.pre3 lib/google/apis/generator/templates/_representation_stub.tmpl
google-api-client-0.9.pre2 lib/google/apis/generator/templates/_representation_stub.tmpl
google-api-client-0.9.pre1 lib/google/apis/generator/templates/_representation_stub.tmpl