Class: SnapTrade::OrderRole
- Inherits:
-
Object
- Object
- SnapTrade::OrderRole
- Defined in:
- lib/snaptrade/models/order_role.rb
Constant Summary collapse
- TRIGGER =
"TRIGGER".freeze
- CONDITIONAL =
"CONDITIONAL".freeze
- PEER =
"PEER".freeze
Class Method Summary collapse
- .all_vars ⇒ Object
-
.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
.all_vars ⇒ Object
19 20 21 |
# File 'lib/snaptrade/models/order_role.rb', line 19 def self.all_vars @all_vars ||= [TRIGGER, CONDITIONAL, PEER].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
26 27 28 |
# File 'lib/snaptrade/models/order_role.rb', line 26 def self.build_from_hash(value) new.build_from_hash(value) end |