Sha256: 5690a6df24d629df89c8d407b49df65e8fe88f2b304fd65f8f1f817e54e92d08

Contents?: true

Size: 1.17 KB

Versions: 4

Compression:

Stored size: 1.17 KB

Contents

<%= raw method[:full_description] %>

<% unless method[:formats].blank? %>
  <%= heading('Supported Formats', h_level) %>
  <%= method[:formats].join(', ') %>
<% end %>

<% unless method[:errors].blank? %>
  <%= heading('Errors', h_level) %>
  <% method[:errors].each do |err| %>
    <%= err[:code] %>
    <%= err[:description] %>
    <br>
    <% unless err[:metadata].blank? %>
      Metadata:
      <pre class="prettyprint lang-yaml"><%= err[:metadata].to_yaml %></pre>
    <% end %>
  <% end %>
<% end %>

<% unless method[:metadata].blank? %>
  <%= heading('Metadata', h_level) %>
  <%= render(:partial => "metadata", :locals => {:meta => method[:metadata]}) %>
<% end %>

<% unless method[:examples].blank? %>
  <%= heading('Examples', h_level) %>
  <% method[:examples].each do |example| %>
    <pre class="prettyprint"><%= example %></pre>
  <% end %>
<% end %>

<% unless method[:params].blank? %>
  <%= heading('Params', h_level) %>
  <table class='table'>
    <thead>
      <tr>
        <th>Param name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <%= render(:partial => "params", :locals => {:params => method[:params]}) %>
    </tbody>
  </table>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
apipie-rails-0.1.3 app/views/apipie/apipies/_method_detail.erb
apipie-rails-0.1.2 app/views/apipie/apipies/_method_detail.erb
apipie-rails-0.1.1 app/views/apipie/apipies/_method_detail.erb
apipie-rails-0.1.0 app/views/apipie/apipies/_method_detail.erb