Class: Zakuro::Operation::Annotation
- Inherits:
-
Object
- Object
- Zakuro::Operation::Annotation
- Defined in:
- lib/zakuro/operation/month/type.rb
Overview
Annotation 注釈
Instance Attribute Summary collapse
-
#description ⇒ String
readonly
内容.
-
#id ⇒ String
readonly
ID.
-
#note ⇒ String
readonly
正誤訂正(zakuro).
Instance Method Summary collapse
-
#initialize(id: '', description: '', note: '') ⇒ Annotation
constructor
初期化.
-
#invalid? ⇒ True, False
無効か.
Constructor Details
#initialize(id: '', description: '', note: '') ⇒ Annotation
初期化
90 91 92 93 94 |
# File 'lib/zakuro/operation/month/type.rb', line 90 def initialize(id: '', description: '', note: '') @id = id @description = description @note = note end |
Instance Attribute Details
#description ⇒ String (readonly)
Returns 内容.
79 80 81 |
# File 'lib/zakuro/operation/month/type.rb', line 79 def description @description end |
#id ⇒ String (readonly)
Returns ID.
77 78 79 |
# File 'lib/zakuro/operation/month/type.rb', line 77 def id @id end |
#note ⇒ String (readonly)
Returns 正誤訂正(zakuro).
81 82 83 |
# File 'lib/zakuro/operation/month/type.rb', line 81 def note @note end |
Instance Method Details
#invalid? ⇒ True, False
無効か
102 103 104 105 106 |
# File 'lib/zakuro/operation/month/type.rb', line 102 def invalid? return true if @id == '' @description == '' && @note == '' end |