Module: Pago::V2026_04::Enums::MetricType
- Defined in:
- lib/pago/v2026_04/enums.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary collapse
- SCALAR =
"scalar"- CURRENCY =
"currency"- CURRENCY_SUB_CENT =
"currency_sub_cent"- PERCENTAGE =
"percentage"- ALL_VALUES =
[ SCALAR, CURRENCY, CURRENCY_SUB_CENT, PERCENTAGE ].freeze
Class Method Summary collapse
-
.valid?(value) ⇒ Boolean
Whether the value is declared by this API version.
-
.values ⇒ Array<String>
Every value declared by the API.
Class Method Details
.valid?(value) ⇒ Boolean
Returns whether the value is declared by this API version.
1986 |
# File 'lib/pago/v2026_04/enums.rb', line 1986 def self.valid?(value) = ALL_VALUES.include?(value) |
.values ⇒ Array<String>
Returns every value declared by the API.
1982 |
# File 'lib/pago/v2026_04/enums.rb', line 1982 def self.values = ALL_VALUES |