Class: Dodopayments::Models::Feature

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/dodopayments/models/feature.rb,
sig/dodopayments/models/feature.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • feature_id (String)

    Identifier of the capability this grant confers.

  • feature_type (Symbol, Dodopayments::Models::FeatureType)

    Type of capability conferred.



# File 'lib/dodopayments/models/feature.rb', line 18

Instance Attribute Details

#feature_idString

Identifier of the capability this grant confers.

Parameters:

  • value (String)

Returns:

  • (String)


10
# File 'lib/dodopayments/models/feature.rb', line 10

required :feature_id, String

#feature_typeSymbol, Dodopayments::Models::FeatureType

Type of capability conferred.

Parameters:

  • value (Dodopayments::Models::feature_type)

Returns:



16
# File 'lib/dodopayments/models/feature.rb', line 16

required :feature_type, enum: -> { Dodopayments::FeatureType }

Instance Method Details

#to_hash{

Returns:

  • ({)


16
# File 'sig/dodopayments/models/feature.rbs', line 16

def to_hash: -> {