Class: SnapTrade::Bucket
- Inherits:
-
Object
- Object
- SnapTrade::Bucket
- Defined in:
- lib/snaptrade/models/bucket.rb
Constant Summary collapse
- TOP_1_PERCENT =
"TOP_1_PERCENT".freeze
- TOP_5_PERCENT =
"TOP_5_PERCENT".freeze
- TOP_10_PERCENT =
"TOP_10_PERCENT".freeze
- TOP_25_PERCENT =
"TOP_25_PERCENT".freeze
- TOP_50_PERCENT =
"TOP_50_PERCENT".freeze
- BOTTOM_50_PERCENT =
"BOTTOM_50_PERCENT".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
22 23 24 |
# File 'lib/snaptrade/models/bucket.rb', line 22 def self.all_vars @all_vars ||= [TOP_1_PERCENT, TOP_5_PERCENT, TOP_10_PERCENT, TOP_25_PERCENT, TOP_50_PERCENT, BOTTOM_50_PERCENT].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
29 30 31 |
# File 'lib/snaptrade/models/bucket.rb', line 29 def self.build_from_hash(value) new.build_from_hash(value) end |