Class: StackOne::Models::Shared::Campaign
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::Campaign
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/campaign.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(archived: nil, channels: nil, created_at: nil, description: nil, draft: nil, first_sent_at: nil, id: nil, last_sent_at: nil, messages: nil, name: nil, remote_id: nil, schedule_type: nil, status: nil, tags: nil, updated_at: nil) ⇒ Campaign
constructor
A new instance of Campaign.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(archived: nil, channels: nil, created_at: nil, description: nil, draft: nil, first_sent_at: nil, id: nil, last_sent_at: nil, messages: nil, name: nil, remote_id: nil, schedule_type: nil, status: nil, tags: nil, updated_at: nil) ⇒ Campaign
Returns a new instance of Campaign.
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/stack_one/models/shared/campaign.rb', line 47 def initialize(archived: nil, channels: nil, created_at: nil, description: nil, draft: nil, first_sent_at: nil, id: nil, last_sent_at: nil, messages: nil, name: nil, remote_id: nil, schedule_type: nil, status: nil, tags: nil, updated_at: nil) @archived = archived @channels = channels @created_at = created_at @description = description @draft = draft @first_sent_at = first_sent_at @id = id @last_sent_at = last_sent_at @messages = @name = name @remote_id = remote_id @schedule_type = schedule_type @status = status @tags = @updated_at = updated_at end |
Instance Method Details
#==(other) ⇒ Object
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/stack_one/models/shared/campaign.rb', line 66 def ==(other) return false unless other.is_a? self.class return false unless @archived == other.archived return false unless @channels == other.channels return false unless @created_at == other.created_at return false unless @description == other.description return false unless @draft == other.draft return false unless @first_sent_at == other.first_sent_at return false unless @id == other.id return false unless @last_sent_at == other.last_sent_at return false unless @messages == other. return false unless @name == other.name return false unless @remote_id == other.remote_id return false unless @schedule_type == other.schedule_type return false unless @status == other.status return false unless @tags == other. return false unless @updated_at == other.updated_at true end |