class TinkoffInvestClient::CandleResolution

Constants

DAY
HOUR
MONTH
N10MIN
N15MIN
N1MIN
N2MIN
N30MIN
N3MIN
N5MIN
WEEK

Public Class Methods

build_from_hash(value) click to toggle source

Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value

# File lib/tinkoff_invest_client/models/candle_resolution.rb, line 33
def self.build_from_hash(value)
  new.build_from_hash(value)
end

Public Instance Methods

build_from_hash(value) click to toggle source

Builds the enum from string @param [String] The enum value in the form of the string @return [String] The enum value

# 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