1.7.46. Service ドロップ (up)
1.7.46.1. メソッド
1.7.46.1.1. errors
送付に失敗した後にこのモデルのフォームがレンダリングされると、発生したエラーを返します。
{{ service.errors.name | inline_errors }}1.7.46.1.2. name
サービスの名前を返します。
1.7.46.1.3. system_name
サービスのシステム名を返します。
{% case service.system_name %}
{% when 'api' %}
API is our newest service!
{% when 'old' %}
Unfortunately we dont allow more signups to our old service.
{% endcase %}1.7.46.1.4. description
サービスの説明を返します。
1.7.46.1.5. subscribed?
サービスがサブスライブされているかどうかを返します。
{% if service.subscribed? %}
<p>You already subscribed this service.</p>
{% endif %}1.7.46.1.6. subscription
現在ログインしているユーザーがこのサービスにサブスライブしている場合は、サブスクリプション (ServiceContract ドロップ) を返します。そうでなければ Nil を返します。
{% if service.subscription %}
Your applications for service {{ service.name }} are:
{% for app in service.subscription.applications %}
{{ app.name }}<br/>
{% endfor %}
{% else %}
<p>You are not subscribed to this.</p>
{% endif %}1.7.46.1.7. subscribable?
1.7.46.1.8. subscribe_url
1.7.46.1.9. application_plans
サービスの 公開されている アプリケーションプランを返します。
{% for service in model.services %}
<h4>{{ service.name }} application plans:</h4>
<dl>
{% for application_plan in service.application_plans %}
<dt>{{ application_plan.name }}</dt>
<dd>{{ application_plan.system_name }}</dd>
{% endfor %}
</dl>
{% endfor %}1.7.46.1.10. service_plans
サービスの 公開されている サービスプランを返します。
<p>We offer following service plans:</p>
<dl>
{% for service in model.services %}
{% for service_plan in service.service_plans %}
<dt>{{ service_plan.name }}</dt>
<dd>{{ service_plan.system_name }}</dd>
{% endfor %}
{% endfor %}
</dl>1.7.46.1.11. plans
サービスのアプリケーションプランを返します。
1.7.46.1.12. features
サービスの表示される機能を返します。
{% if service.features.size > 0 %}
<p>{{ service.name }} has following features:</p>
<ul>
{% for feature in service.features %}
<li>{{ feature.name }}</li>
{% endfor %}
</ul>
{% else %}
<p>Unfortunately, {{ service.name }} currently has no features.</p>
{% endif %}1.7.46.1.13. apps_identifier
設定されている認証モードに応じて、ID、API key、または OAuth 認証の Client ID のいずれかを返します。
{{ service.application_key_name }}1.7.46.1.14. backend_version
1.7.46.1.15. referrer_filters_required?
1.7.46.1.16. metrics
サービスのメトリクスを返します。
<p>On {{ service.name }} we measure following metrics:</p>
<ul>
{% for metric in service.metrics %}
<li>{{ metric.name }}</li>
{% endfor %}
</ul>1.7.46.1.17. support_email
サービスのサポートメール