Class: GustoEmbedded::Models::Shared::Notification
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::Notification
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/notification.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(uuid:, company_uuid:, title:, message:, status:, category:, actionable:, can_block_payroll:, published_at:, resources:, due_at: nil, template_variables: nil) ⇒ Notification
constructor
A new instance of Notification.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(uuid:, company_uuid:, title:, message:, status:, category:, actionable:, can_block_payroll:, published_at:, resources:, due_at: nil, template_variables: nil) ⇒ Notification
Returns a new instance of Notification.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/gusto_embedded/models/shared/notification.rb', line 41 def initialize(uuid:, company_uuid:, title:, message:, status:, category:, actionable:, can_block_payroll:, published_at:, resources:, due_at: nil, template_variables: nil) @uuid = uuid @company_uuid = company_uuid @title = title @message = @status = status @category = category @actionable = actionable @can_block_payroll = can_block_payroll @published_at = published_at @resources = resources @due_at = due_at @template_variables = template_variables end |
Instance Method Details
#==(other) ⇒ Object
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/gusto_embedded/models/shared/notification.rb', line 57 def ==(other) return false unless other.is_a? self.class return false unless @uuid == other.uuid return false unless @company_uuid == other.company_uuid return false unless @title == other.title return false unless @message == other. return false unless @status == other.status return false unless @category == other.category return false unless @actionable == other.actionable return false unless @can_block_payroll == other.can_block_payroll return false unless @published_at == other.published_at return false unless @resources == other.resources return false unless @due_at == other.due_at return false unless @template_variables == other.template_variables true end |