Class: Clerk::Models::Components::InstanceCommunication
- Inherits:
-
Object
- Object
- Clerk::Models::Components::InstanceCommunication
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/instancecommunication.rb
Overview
Per-instance SMS communication settings, including the SMS country blocklist.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(object:, blocked_country_codes:) ⇒ InstanceCommunication
constructor
A new instance of InstanceCommunication.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(object:, blocked_country_codes:) ⇒ InstanceCommunication
Returns a new instance of InstanceCommunication.
21 22 23 24 |
# File 'lib/clerk/models/components/instancecommunication.rb', line 21 def initialize(object:, blocked_country_codes:) @object = object @blocked_country_codes = blocked_country_codes end |
Instance Method Details
#==(other) ⇒ Object
27 28 29 30 31 32 |
# File 'lib/clerk/models/components/instancecommunication.rb', line 27 def ==(other) return false unless other.is_a? self.class return false unless @object == other.object return false unless @blocked_country_codes == other.blocked_country_codes true end |