class Yardi::RequestSection::Prospect
Generate the data needed for a ProspectSearch
Attributes
property_id[R]
prospect[R]
Public Class Methods
new(property_id:, prospect:)
click to toggle source
# File lib/yardi/request_section/prospect.rb, line 9 def initialize(property_id:, prospect:) @property_id = property_id @prospect = prospect end
Public Instance Methods
generate(xml_builder)
click to toggle source
Even though we may not send data for some fields, Yardi
needs empty nodes or the request fails.
# File lib/yardi/request_section/prospect.rb, line 16 def generate(xml_builder) xml_builder['itf'].YardiPropertyId property_id xml_builder['itf'].FirstName prospect.first_name xml_builder['itf'].LastName prospect.last_name xml_builder['itf'].EmailAddress prospect.email xml_builder['itf'].PhoneNumber prospect.phone xml_builder['itf'].ThirdPartyId prospect.yardi_prospect_id xml_builder['itf'].FederalId end