Class: Zakuro::Version::Daien::Lunar::Adjustment::Value
- Inherits:
-
Object
- Object
- Zakuro::Version::Daien::Lunar::Adjustment::Value
- Defined in:
- lib/zakuro/version/daien/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
初期化
145 146 147 148 |
# File 'lib/zakuro/version/daien/stella/lunar/adjustment.rb', line 145 def initialize(per:, stack:) @per = per @stack = stack end |
Instance Attribute Details
#per ⇒ Integer (readonly)
Returns 増減率.
135 136 137 |
# File 'lib/zakuro/version/daien/stella/lunar/adjustment.rb', line 135 def per @per end |
#stack ⇒ Integer (readonly)
Returns 遅速積.
137 138 139 |
# File 'lib/zakuro/version/daien/stella/lunar/adjustment.rb', line 137 def stack @stack end |
Instance Method Details
#to_s ⇒ String
文字化
155 156 157 |
# File 'lib/zakuro/version/daien/stella/lunar/adjustment.rb', line 155 def to_s "per:#{per}, stack:#{stack}" end |