module Zakuro::Operation
Operation
運用
Operation
運用
Operation
運用
Operation
運用
Constants
- INVALID_DAY_VALUE
日(差分)無効値
- MONTH_HISTORIES
変更履歴(月)
Public Class Methods
month_histories()
click to toggle source
変更履歴(月)を返す
@return [Array<MonthHistory>] 変更履歴
# File lib/zakuro/operation/operation.rb, line 24 def self.month_histories MONTH_HISTORIES end
specify_history(western_date:)
click to toggle source
変更履歴を特定する
@param [Western::Calendar] western_date 月初日の西暦日
@return [Operation::MonthHistory] 変更履歴
# File lib/zakuro/operation/operation.rb, line 37 def self.specify_history(western_date:) month_histroies = Operation.month_histories month_histroies.each do |history| return history if western_date == history.western_date end Operation::MonthHistory.new end
specify_history_by_id(id:)
click to toggle source
変更履歴を特定する
@param [Western::Calendar] id 変更履歴ID
@return [Operation::MonthHistory] 変更履歴
# File lib/zakuro/operation/operation.rb, line 56 def self.specify_history_by_id(id:) month_histroies = Operation.month_histories month_histroies.each do |history| return history if id == history.id end Operation::MonthHistory.new end