Class: Yardi::Validator::ProspectEventing

Inherits:
Base
  • Object
show all
Defined in:
lib/yardi/validator/prospect_eventing.rb

Instance Method Summary collapse

Methods inherited from Base

#import_resident_id, #parse_date, #pms_prospect_request_params, #pms_resident_request_params, #remote_id, #send_pms_prospect_event, #send_pms_resident_event

Constructor Details

#initialize(action:, parsed_response:, params:) ⇒ ProspectEventing

Sends parased response’s roommate and prospect data to Snowflake via event tracker



8
9
10
11
12
# File 'lib/yardi/validator/prospect_eventing.rb', line 8

def initialize(action:, parsed_response:, params:)
  @action = action
  @response = parsed_response
  @params = params
end

Instance Method Details

#validate!Object



14
15
16
17
18
# File 'lib/yardi/validator/prospect_eventing.rb', line 14

def validate!
  return if response.nil?

  send_prospect_events
end