Class: Zakuro::Result::Operation::Month::History

Inherits:
Object
  • Object
show all
Defined in:
lib/zakuro/result/operation/month/history.rb

Overview

History 月別履歴情報

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id: '', western_date: '', page: -1,, number: -1,, annotations: []) ⇒ History

初期化

Parameters:

  • id (String) (defaults to: '')

    ID

  • western_date (String) (defaults to: '')

    月初日の西暦日

  • page (Integer) (defaults to: -1,)

    原文頁数

  • number (Integer) (defaults to: -1,)

    原文注釈番号

  • annotations (Array<Annotation>) (defaults to: [])

    注釈



43
44
45
46
47
48
49
# File 'lib/zakuro/result/operation/month/history.rb', line 43

def initialize(id: '', western_date: '', page: -1, number: -1, annotations: [])
  @id = id
  @western_date = western_date
  @page = page
  @number = number
  @annotations = annotations
end

Instance Attribute Details

#annotationsArray<Annotation> (readonly)

Returns 注釈.

Returns:



32
33
34
# File 'lib/zakuro/result/operation/month/history.rb', line 32

def annotations
  @annotations
end

#idString (readonly)

Returns ID.

Returns:

  • (String)

    ID



24
25
26
# File 'lib/zakuro/result/operation/month/history.rb', line 24

def id
  @id
end

#numberInteger (readonly)

Returns 原文注釈番号.

Returns:

  • (Integer)

    原文注釈番号



30
31
32
# File 'lib/zakuro/result/operation/month/history.rb', line 30

def number
  @number
end

#pageInteger (readonly)

Returns 原文頁数.

Returns:

  • (Integer)

    原文頁数



28
29
30
# File 'lib/zakuro/result/operation/month/history.rb', line 28

def page
  @page
end

#western_dateString (readonly)

Returns 月初日の西暦日.

Returns:

  • (String)

    月初日の西暦日



26
27
28
# File 'lib/zakuro/result/operation/month/history.rb', line 26

def western_date
  @western_date
end