Class: Zakuro::Version::Gihou::Lunar::Adjustment::Value
- Inherits:
-
Object
- Object
- Zakuro::Version::Gihou::Lunar::Adjustment::Value
- Defined in:
- lib/zakuro/version/gihou/stella/lunar/adjustment.rb
Overview
Value 補正値
Instance Attribute Summary collapse
-
#per ⇒ Integer
readonly
増減率.
-
#stack ⇒ Integer
readonly
遅速積.
Instance Method Summary collapse
-
#initialize(per:, stack:) ⇒ Value
constructor
初期化.
-
#to_s ⇒ String
文字化.
Constructor Details
#initialize(per:, stack:) ⇒ Value
初期化
157 158 159 160 |
# File 'lib/zakuro/version/gihou/stella/lunar/adjustment.rb', line 157 def initialize(per:, stack:) @per = per @stack = stack end |
Instance Attribute Details
#per ⇒ Integer (readonly)
Returns 増減率.
147 148 149 |
# File 'lib/zakuro/version/gihou/stella/lunar/adjustment.rb', line 147 def per @per end |
#stack ⇒ Integer (readonly)
Returns 遅速積.
149 150 151 |
# File 'lib/zakuro/version/gihou/stella/lunar/adjustment.rb', line 149 def stack @stack end |
Instance Method Details
#to_s ⇒ String
文字化
167 168 169 |
# File 'lib/zakuro/version/gihou/stella/lunar/adjustment.rb', line 167 def to_s "per:#{per}, stack:#{stack}" end |