Class: Exceler::ScanOption
- Inherits:
-
Object
- Object
- Exceler::ScanOption
- Defined in:
- lib/exceler.rb
Overview
アイテムを取得する際のオプション
Instance Attribute Summary collapse
-
#assign_row ⇒ Object
readonly
Returns the value of attribute assign_row.
-
#content_row ⇒ Object
readonly
Returns the value of attribute content_row.
-
#header ⇒ Object
readonly
Returns the value of attribute header.
-
#id_row ⇒ Object
readonly
Returns the value of attribute id_row.
-
#limit_row ⇒ Object
readonly
Returns the value of attribute limit_row.
-
#sheet ⇒ Object
readonly
Returns the value of attribute sheet.
-
#start_row ⇒ Object
readonly
Returns the value of attribute start_row.
-
#state_condition ⇒ Object
readonly
Returns the value of attribute state_condition.
-
#state_row ⇒ Object
readonly
Returns the value of attribute state_row.
Instance Method Summary collapse
-
#initialize(sheet, header, id_row, content_row, assign_row, start_row, limit_row, state_row, state_condition) ⇒ ScanOption
constructor
new.
Constructor Details
#initialize(sheet, header, id_row, content_row, assign_row, start_row, limit_row, state_row, state_condition) ⇒ ScanOption
new
Args
- sheet
-
シート名(nilの場合は全てのシートに適用)
- header
-
ヘッダー行(スキップする行数)
- id_row
-
アイテムの存在を確認する列
- content_row
-
コンテンツの内容を表す列
- assign_row
-
担当者の列
- start_row
-
開始日の列
- limit_row
-
期限の列
- state_row
-
ステータスの列
- state_condition
-
合致で済とする場合は合致の文字列、埋まっていることで済とする場合はnil
25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/exceler.rb', line 25 def initialize( sheet, header , id_row , content_row , assign_row , start_row , limit_row , state_row, state_condition ) @sheet = sheet @header = header # ヘッダー行(スキップする行数) @id_row = id_row # アイテムの存在を確認する列 @content_row = content_row @assign_row = assign_row # 担当者の列 @start_row = start_row # 開始日の列 @limit_row = limit_row # 期限の列 @state_row = state_row # ステータスの列 @state_condition = state_condition end |
Instance Attribute Details
#assign_row ⇒ Object (readonly)
Returns the value of attribute assign_row.
41 42 43 |
# File 'lib/exceler.rb', line 41 def assign_row @assign_row end |
#content_row ⇒ Object (readonly)
Returns the value of attribute content_row.
40 41 42 |
# File 'lib/exceler.rb', line 40 def content_row @content_row end |
#header ⇒ Object (readonly)
Returns the value of attribute header.
38 39 40 |
# File 'lib/exceler.rb', line 38 def header @header end |
#id_row ⇒ Object (readonly)
Returns the value of attribute id_row.
39 40 41 |
# File 'lib/exceler.rb', line 39 def id_row @id_row end |
#limit_row ⇒ Object (readonly)
Returns the value of attribute limit_row.
43 44 45 |
# File 'lib/exceler.rb', line 43 def limit_row @limit_row end |
#sheet ⇒ Object (readonly)
Returns the value of attribute sheet.
37 38 39 |
# File 'lib/exceler.rb', line 37 def sheet @sheet end |
#start_row ⇒ Object (readonly)
Returns the value of attribute start_row.
42 43 44 |
# File 'lib/exceler.rb', line 42 def start_row @start_row end |
#state_condition ⇒ Object (readonly)
Returns the value of attribute state_condition.
45 46 47 |
# File 'lib/exceler.rb', line 45 def state_condition @state_condition end |
#state_row ⇒ Object (readonly)
Returns the value of attribute state_row.
44 45 46 |
# File 'lib/exceler.rb', line 44 def state_row @state_row end |