Class: TinkoffInvestClient::OrderStatus
- Inherits:
-
Object
- Object
- TinkoffInvestClient::OrderStatus
- Defined in:
- lib/tinkoff_invest_client/models/order_status.rb
Constant Summary collapse
- NEW =
"New".freeze
- PARTIALLY_FILL =
"PartiallyFill".freeze
- FILL =
"Fill".freeze
- CANCELLED =
"Cancelled".freeze
- REPLACED =
"Replaced".freeze
- PENDING_CANCEL =
"PendingCancel".freeze
- REJECTED =
"Rejected".freeze
- PENDING_REPLACE =
"PendingReplace".freeze
- PENDING_NEW =
"PendingNew".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
31 32 33 |
# File 'lib/tinkoff_invest_client/models/order_status.rb', line 31 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
38 39 40 41 42 |
# File 'lib/tinkoff_invest_client/models/order_status.rb', line 38 def build_from_hash(value) constantValues = OrderStatus.constants.select { |c| OrderStatus::const_get(c) == value } raise "Invalid ENUM value #{value} for class #OrderStatus" if constantValues.empty? value end |