Class: Kombo::Models::Shared::Break

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/kombo/models/shared/break_.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(ended_at:, paid:, started_at:) ⇒ Break

Returns a new instance of Break.



23
24
25
26
27
# File 'lib/kombo/models/shared/break_.rb', line 23

def initialize(ended_at:, paid:, started_at:)
  @ended_at = ended_at
  @paid = paid
  @started_at = started_at
end

Instance Method Details

#==(other) ⇒ Object



30
31
32
33
34
35
36
# File 'lib/kombo/models/shared/break_.rb', line 30

def ==(other)
  return false unless other.is_a? self.class
  return false unless @ended_at == other.ended_at
  return false unless @paid == other.paid
  return false unless @started_at == other.started_at
  true
end