class TinkoffInvestClient::OperationTypeWithCommission

Constants

BROKER_COMMISSION
BUY
BUY_CARD
COUPON
DIVIDEND
EXCHANGE_COMMISSION
MARGIN_COMMISSION
OTHER_COMMISSION
PART_REPAYMENT
PAY_IN
PAY_OUT
REPAYMENT
SECURITY_IN
SECURITY_OUT
SELL
SERVICE_COMMISSION
TAX
TAX_BACK
TAX_COUPON
TAX_DIVIDEND
TAX_LUCRE

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/operation_type_with_commission.rb, line 43
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/operation_type_with_commission.rb, line 50
def build_from_hash(value)
  constantValues = OperationTypeWithCommission.constants.select { |c| OperationTypeWithCommission::const_get(c) == value }
  raise "Invalid ENUM value #{value} for class #OperationTypeWithCommission" if constantValues.empty?
  value
end