Class: Courier::Models::ListFilter
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Courier::Models::ListFilter
- Defined in:
- lib/courier/models/list_filter.rb,
sig/courier/models/list_filter.rbs
Defined Under Namespace
Instance Attribute Summary collapse
-
#operator ⇒ Symbol, Courier::Models::ListFilter::Operator
Send to users only if they are member of the account.
- #path ⇒ Symbol, Courier::Models::ListFilter::Path
- #value ⇒ String
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(operator:, path:, value:) ⇒ ListFilter
constructor
A new instance of ListFilter.
- #to_hash ⇒ { operator: Courier::Models::ListFilter::operator, path: Courier::Models::ListFilter::path, value: String }
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(operator:, path:, value:) ⇒ ListFilter
Returns a new instance of ListFilter.
|
|
# File 'lib/courier/models/list_filter.rb', line 22
|
Instance Attribute Details
#operator ⇒ Symbol, Courier::Models::ListFilter::Operator
Send to users only if they are member of the account
10 |
# File 'lib/courier/models/list_filter.rb', line 10 required :operator, enum: -> { Courier::ListFilter::Operator } |
#path ⇒ Symbol, Courier::Models::ListFilter::Path
15 |
# File 'lib/courier/models/list_filter.rb', line 15 required :path, enum: -> { Courier::ListFilter::Path } |
#value ⇒ String
20 |
# File 'lib/courier/models/list_filter.rb', line 20 required :value, String |
Class Method Details
.values ⇒ Array<Symbol>
|
|
# File 'lib/courier/models/list_filter.rb', line 37
|
Instance Method Details
#to_hash ⇒ { operator: Courier::Models::ListFilter::operator, path: Courier::Models::ListFilter::path, value: String }
23 24 25 26 27 |
# File 'sig/courier/models/list_filter.rbs', line 23
def to_hash: -> {
operator: Courier::Models::ListFilter::operator,
path: Courier::Models::ListFilter::path,
value: String
}
|