Class: Lithic::Models::AuthRules::RuleFeature::IPMetadataFeature

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/lithic/models/auth_rules/rule_feature.rb,
sig/lithic/models/auth_rules/rule_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

#initializeIPMetadataFeature

Returns a new instance of IPMetadataFeature.

Parameters:

  • name: (String)
  • type: (:IP_METADATA)


161
# File 'sig/lithic/models/auth_rules/rule_feature.rbs', line 161

def initialize: (?name: String, ?type: :IP_METADATA) -> void

Instance Attribute Details

#nameString?

The variable name for this feature in the rule function signature

Parameters:

  • (String)

Returns:

  • (String, nil)


253
# File 'lib/lithic/models/auth_rules/rule_feature.rb', line 253

optional :name, String

#typeSymbol, :IP_METADATA

Parameters:

  • value (:IP_METADATA)

Returns:

  • (Symbol, :IP_METADATA)


247
# File 'lib/lithic/models/auth_rules/rule_feature.rb', line 247

required :type, const: :IP_METADATA

Instance Method Details

#to_hash{ type: :IP_METADATA, name: String }

Returns:

  • ({ type: :IP_METADATA, name: String })


163
# File 'sig/lithic/models/auth_rules/rule_feature.rbs', line 163

def to_hash: -> { type: :IP_METADATA, name: String }