Class: TinkoffInvestClient::CandleResolution
- Inherits:
-
Object
- Object
- TinkoffInvestClient::CandleResolution
- Defined in:
- lib/tinkoff_invest_client/models/candle_resolution.rb
Constant Summary collapse
- N1MIN =
"1min".freeze
- N2MIN =
"2min".freeze
- N3MIN =
"3min".freeze
- N5MIN =
"5min".freeze
- N10MIN =
"10min".freeze
- N15MIN =
"15min".freeze
- N30MIN =
"30min".freeze
- HOUR =
"hour".freeze
- DAY =
"day".freeze
- WEEK =
"week".freeze
- MONTH =
"month".freeze
Class Method Summary collapse
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.build_from_hash(value) ⇒ String
Builds the enum from string
33 34 35 |
# File 'lib/tinkoff_invest_client/models/candle_resolution.rb', line 33 def self.build_from_hash(value) new.build_from_hash(value) end |
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
40 41 42 43 44 |
# File 'lib/tinkoff_invest_client/models/candle_resolution.rb', line 40 def build_from_hash(value) constantValues = CandleResolution.constants.select { |c| CandleResolution::const_get(c) == value } raise "Invalid ENUM value #{value} for class #CandleResolution" if constantValues.empty? value end |