{"size": 485, "ext": "js", "max_stars_repo_path": "lib/generators/templates/model.js", "max_stars_repo_name": "JakeKaad/ember-rails", "max_stars_repo_stars_event_min_datetime": "2015-01-01T22:30:41.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-10T18:00:08.000Z", "max_issues_repo_path": "lib/generators/templates/model.js", "max_issues_repo_name": "JakeKaad/ember-rails", "max_issues_repo_issues_event_min_datetime": "2015-01-01T08:57:40.000Z", "max_issues_repo_issues_event_max_datetime": "2018-06-20T13:45:25.000Z", "max_forks_repo_path": "lib/generators/templates/model.js", "max_forks_repo_name": "JakeKaad/ember-rails", "max_forks_repo_forks_event_min_datetime": "2015-01-01T05:33:30.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-03T03:22:46.000Z"}
{"max_stars_count": 435, "max_issues_count": 109, "max_forks_count": 74, "avg_line_length": 34.6428571429, "max_line_length": 74, "alphanum_fraction": 0.6268041237}
// for more details see: http://emberjs.com/guides/models/defining-models/

<%= application_name.camelize %>.<%= class_name %> = DS.Model.extend({
<% attributes.each_with_index do |attribute, idx| -%>
  <%= attribute[:name].camelize(:lower) %>: <%=
  if %w(references belongs_to).member?(attribute[:type])
    "DS.belongsTo('%s')" % attribute[:name].camelize(:lower)
  else
    "DS.attr('%s')" % attribute[:type]
  end
  %><% if (idx < attributes.length-1) %>,<% end %>
<% end -%>
});
