Class: Zakuro::Operation::MonthHistory
- Inherits:
-
Object
- Object
- Zakuro::Operation::MonthHistory
- Defined in:
- lib/zakuro/operation/month/type.rb
Overview
MonthHistory 変更履歴
Instance Attribute Summary collapse
-
#annotations ⇒ Array<Annotation>
readonly
注釈.
-
#diffs ⇒ Diffs
readonly
総差分.
-
#id ⇒ String
readonly
ID.
-
#parent_id ⇒ String
readonly
親ID.
-
#reference ⇒ Reference
readonly
参照.
-
#western_date ⇒ Western::Calendar
readonly
西暦日.
Instance Method Summary collapse
-
#initialize(id: '', parent_id: '', reference: Reference.new, western_date: Western::Calendar.new, annotations: [], diffs: Diffs.new) ⇒ MonthHistory
constructor
初期化.
-
#invalid? ⇒ True, False
無効か.
Constructor Details
#initialize(id: '', parent_id: '', reference: Reference.new, western_date: Western::Calendar.new, annotations: [], diffs: Diffs.new) ⇒ MonthHistory
初期化
50 51 52 53 54 55 56 57 58 |
# File 'lib/zakuro/operation/month/type.rb', line 50 def initialize(id: '', parent_id: '', reference: Reference.new, western_date: Western::Calendar.new, annotations: [], diffs: Diffs.new) @id = id @parent_id = parent_id @reference = reference @western_date = western_date @annotations = annotations @diffs = diffs end |
Instance Attribute Details
#annotations ⇒ Array<Annotation> (readonly)
Returns 注釈.
33 34 35 |
# File 'lib/zakuro/operation/month/type.rb', line 33 def annotations @annotations end |
#diffs ⇒ Diffs (readonly)
Returns 総差分.
35 36 37 |
# File 'lib/zakuro/operation/month/type.rb', line 35 def diffs @diffs end |
#id ⇒ String (readonly)
Returns ID.
25 26 27 |
# File 'lib/zakuro/operation/month/type.rb', line 25 def id @id end |
#parent_id ⇒ String (readonly)
Returns 親ID.
27 28 29 |
# File 'lib/zakuro/operation/month/type.rb', line 27 def parent_id @parent_id end |
#reference ⇒ Reference (readonly)
Returns 参照.
29 30 31 |
# File 'lib/zakuro/operation/month/type.rb', line 29 def reference @reference end |
#western_date ⇒ Western::Calendar (readonly)
Returns 西暦日.
31 32 33 |
# File 'lib/zakuro/operation/month/type.rb', line 31 def western_date @western_date end |
Instance Method Details
#invalid? ⇒ True, False
無効か
67 68 69 |
# File 'lib/zakuro/operation/month/type.rb', line 67 def invalid? id == '' end |