Class: Kombo::Models::Shared::Interview
- Inherits:
-
Object
- Object
- Kombo::Models::Shared::Interview
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/kombo/models/shared/interview.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(id:, remote_id: nil, title: nil, starting_at: nil, ending_at: nil, canceled: nil, location: nil) ⇒ Interview
constructor
A new instance of Interview.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(id:, remote_id: nil, title: nil, starting_at: nil, ending_at: nil, canceled: nil, location: nil) ⇒ Interview
Returns a new instance of Interview.
33 34 35 36 37 38 39 40 41 |
# File 'lib/kombo/models/shared/interview.rb', line 33 def initialize(id:, remote_id: nil, title: nil, starting_at: nil, ending_at: nil, canceled: nil, location: nil) @id = id @remote_id = remote_id @title = title @starting_at = starting_at @ending_at = ending_at @canceled = canceled @location = location end |
Instance Method Details
#==(other) ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/kombo/models/shared/interview.rb', line 44 def ==(other) return false unless other.is_a? self.class return false unless @id == other.id return false unless @remote_id == other.remote_id return false unless @title == other.title return false unless @starting_at == other.starting_at return false unless @ending_at == other.ending_at return false unless @canceled == other.canceled return false unless @location == other.location true end |