class Zakuro::Operation::Annotation

Annotation 注釈

Attributes

description[R]

@return [String] 内容

id[R]

@return [String] ID

note[R]

@return [String] 正誤訂正(zakuro)

Public Class Methods

new(id: '', description: '', note: '') click to toggle source

初期化

@param [String] id ID @param [String] description 内容 @param [String] note 正誤訂正(zakuro)

# File lib/zakuro/operation/month/type.rb, line 90
def initialize(id: '', description: '', note: '')
  @id = id
  @description = description
  @note = note
end

Public Instance Methods

invalid?() click to toggle source

無効か

@return [True] 無効 @return [False] 有効

# File lib/zakuro/operation/month/type.rb, line 102
def invalid?
  return true if @id == ''

  @description == '' && @note == ''
end