Class: SnapTrade::AuthType
- Inherits:
-
Object
- Object
- SnapTrade::AuthType
- Defined in:
- lib/snaptrade/models/auth_type.rb
Constant Summary collapse
- OAUTH =
"OAUTH".freeze
- SCRAPE =
"SCRAPE".freeze
- UNOFFICIAL_API =
"UNOFFICIAL_API".freeze
- TOKEN =
"TOKEN".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
20 21 22 |
# File 'lib/snaptrade/models/auth_type.rb', line 20 def self.all_vars @all_vars ||= [OAUTH, SCRAPE, UNOFFICIAL_API, TOKEN].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
27 28 29 |
# File 'lib/snaptrade/models/auth_type.rb', line 27 def self.build_from_hash(value) new.build_from_hash(value) end |