Class: Exceler::ScanOption

Inherits:
Object
  • Object
show all
Defined in:
lib/exceler.rb

Overview

アイテムを取得する際のオプション

Instance Attribute Summary collapse

Instance Method Summary collapse

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_rowObject (readonly)

Returns the value of attribute assign_row.



41
42
43
# File 'lib/exceler.rb', line 41

def assign_row
  @assign_row
end

#content_rowObject (readonly)

Returns the value of attribute content_row.



40
41
42
# File 'lib/exceler.rb', line 40

def content_row
  @content_row
end

#headerObject (readonly)

Returns the value of attribute header.



38
39
40
# File 'lib/exceler.rb', line 38

def header
  @header
end

#id_rowObject (readonly)

Returns the value of attribute id_row.



39
40
41
# File 'lib/exceler.rb', line 39

def id_row
  @id_row
end

#limit_rowObject (readonly)

Returns the value of attribute limit_row.



43
44
45
# File 'lib/exceler.rb', line 43

def limit_row
  @limit_row
end

#sheetObject (readonly)

Returns the value of attribute sheet.



37
38
39
# File 'lib/exceler.rb', line 37

def sheet
  @sheet
end

#start_rowObject (readonly)

Returns the value of attribute start_row.



42
43
44
# File 'lib/exceler.rb', line 42

def start_row
  @start_row
end

#state_conditionObject (readonly)

Returns the value of attribute state_condition.



45
46
47
# File 'lib/exceler.rb', line 45

def state_condition
  @state_condition
end

#state_rowObject (readonly)

Returns the value of attribute state_row.



44
45
46
# File 'lib/exceler.rb', line 44

def state_row
  @state_row
end