class Zakuro::Operation::MonthHistory
MonthHistory
変更履歴
Attributes
annotations[R]
@return [Array<Annotation>] 注釈
diffs[R]
@return [Diffs] 総差分
id[R]
@return [String] ID
parent_id[R]
@return [String] 親ID
reference[R]
@return [Reference] 参照
western_date[R]
@return [Western::Calendar] 西暦日
Public Class Methods
new(id: '', parent_id: '', reference: Reference.new, western_date: Western::Calendar.new, annotations: [], diffs: Diffs.new)
click to toggle source
初期化
@param [String] id ID @param [String] parent_id
親ID @param [Reference] reference 参照 @param [Western::Calendar] western_date
西暦日 @param [Array<Annotation>] annotations 注釈 @param [Diffs] diffs 総差分
# 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
Public Instance Methods
invalid?()
click to toggle source
無効か
@return [True] 無効 @return [False] 有効
# File lib/zakuro/operation/month/type.rb, line 67 def invalid? id == '' end