Class: UspsApi::Scope34
- Inherits:
-
Object
- Object
- UspsApi::Scope34
- Defined in:
- lib/usps_api/models/scope34.rb
Overview
scope34.
Constant Summary collapse
- SCOPE34 =
[ # TODO: Write general description for OAUTH_2OIDC OAUTH_2OIDC = 'oauth2-oidc'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = OAUTH_2OIDC) ⇒ Object
20 21 22 23 24 |
# File 'lib/usps_api/models/scope34.rb', line 20 def self.from_value(value, default_value = OAUTH_2OIDC) return default_value if value.nil? default_value end |
.validate(value) ⇒ Object
14 15 16 17 18 |
# File 'lib/usps_api/models/scope34.rb', line 14 def self.validate(value) return false if value.nil? SCOPE34.include?(value) end |