Class: DnaPaymentsPartnerReportingSettlementApIs::Scope
- Inherits:
-
Object
- Object
- DnaPaymentsPartnerReportingSettlementApIs::Scope
- Defined in:
- lib/dna_payments_partner_reporting_settlement_ap_is/models/scope.rb
Overview
Scope of the action to be performed with the credentials.
Constant Summary collapse
- SCOPE =
[ # TODO: Write general description for PARTNERS_REPORTING PARTNERS_REPORTING = 'partners_reporting'.freeze ].freeze
Class Method Summary collapse
Class Method Details
.from_value(value, default_value = PARTNERS_REPORTING) ⇒ Object
20 21 22 23 24 |
# File 'lib/dna_payments_partner_reporting_settlement_ap_is/models/scope.rb', line 20 def self.from_value(value, default_value = PARTNERS_REPORTING) return default_value if value.nil? default_value end |
.validate(value) ⇒ Object
14 15 16 17 18 |
# File 'lib/dna_payments_partner_reporting_settlement_ap_is/models/scope.rb', line 14 def self.validate(value) return false if value.nil? SCOPE.include?(value) end |