Class: Dodopayments::Models::Feature
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Dodopayments::Models::Feature
- Defined in:
- lib/dodopayments/models/feature.rb,
sig/dodopayments/models/feature.rbs
Instance Attribute Summary collapse
-
#feature_id ⇒ String
Identifier of the capability this grant confers.
-
#feature_type ⇒ Symbol, Dodopayments::Models::FeatureType
Type of capability conferred.
Instance Method Summary collapse
-
#initialize(feature_id:, feature_type:) ⇒ Object
constructor
Capability conferred by a
feature_flaggrant. - #to_hash ⇒ {
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(feature_id:, feature_type:) ⇒ Object
Capability conferred by a feature_flag grant.
|
|
# File 'lib/dodopayments/models/feature.rb', line 18
|
Instance Attribute Details
#feature_id ⇒ String
Identifier of the capability this grant confers.
10 |
# File 'lib/dodopayments/models/feature.rb', line 10 required :feature_id, String |
#feature_type ⇒ Symbol, Dodopayments::Models::FeatureType
Type of capability conferred.
16 |
# File 'lib/dodopayments/models/feature.rb', line 16 required :feature_type, enum: -> { Dodopayments::FeatureType } |
Instance Method Details
#to_hash ⇒ {
16 |
# File 'sig/dodopayments/models/feature.rbs', line 16
def to_hash: -> {
|