Use REQUIRED? heading to center column contents

This commit is contained in:
Mark Maglana
2013-10-01 15:10:55 -07:00
parent b2d39ce665
commit 163d0b29a5
2 changed files with 19 additions and 19 deletions

View File

@@ -41,7 +41,7 @@ module Aviator
if params.length > 0
display << "\n"
headings = ['NAME', 'REQUIRED']
headings = ['NAME', 'REQUIRED?']
headings << 'ALIAS' if aliases.length > 0

View File

@@ -142,12 +142,12 @@ EOF
Request: #{ request_name }
Parameters:
+----------+----------+
| NAME | REQUIRED |
+----------+----------+
| another | N |
| theParam | Y |
+----------+----------+
+----------+-----------+
| NAME | REQUIRED? |
+----------+-----------+
| another | N |
| theParam | Y |
+----------+-----------+
Sample Code:
session.#{ service }_service.request(:#{ request_name }) do |params|
@@ -182,12 +182,12 @@ EOF
Request: #{ request_name }
Parameters:
+--------------+----------+---------------+
| NAME | REQUIRED | ALIAS |
+--------------+----------+---------------+
| anotherParam | N | another_param |
| theParam | Y | the_param |
+--------------+----------+---------------+
+--------------+-----------+---------------+
| NAME | REQUIRED? | ALIAS |
+--------------+-----------+---------------+
| anotherParam | N | another_param |
| theParam | Y | the_param |
+--------------+-----------+---------------+
Sample Code:
session.#{ service }_service.request(:#{ request_name }) do |params|
@@ -224,12 +224,12 @@ EOF
Request: #{ request_name }
Parameters:
+--------------+----------+---------------+
| NAME | REQUIRED | ALIAS |
+--------------+----------+---------------+
| anotherParam | N | another_param |
| theParam | Y | the_param |
+--------------+----------+---------------+
+--------------+-----------+---------------+
| NAME | REQUIRED? | ALIAS |
+--------------+-----------+---------------+
| anotherParam | N | another_param |
| theParam | Y | the_param |
+--------------+-----------+---------------+
Sample Code:
session.#{ service }_service.request(:#{ request_name }) do |params|