Class: Yardi::RequestSection::LeadManagement
- Inherits:
-
Object
- Object
- Yardi::RequestSection::LeadManagement
- Defined in:
- lib/yardi/request_section/lead_management.rb
Overview
Generate the LeadManagement section of a Yardi request
Instance Method Summary collapse
- #generate(xml_builder) ⇒ Object
-
#initialize(agent:, lead_source:, property:, reason:, user:, guestcard_action:) ⇒ LeadManagement
constructor
A new instance of LeadManagement.
Constructor Details
#initialize(agent:, lead_source:, property:, reason:, user:, guestcard_action:) ⇒ LeadManagement
Returns a new instance of LeadManagement.
7 8 9 10 11 12 13 14 |
# File 'lib/yardi/request_section/lead_management.rb', line 7 def initialize(agent:, lead_source:, property:, reason:, user:, guestcard_action:) @agent = agent @lead_source = lead_source @property = property @reason = reason @user = user @guestcard_action = guestcard_action end |
Instance Method Details
#generate(xml_builder) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/yardi/request_section/lead_management.rb', line 16 def generate(xml_builder) xml_builder.LeadManagement do |lead_management_xml| lead_management_xml.Prospects do |prospects_xml| prospect_xml(prospects_xml) end end end |