class RealPage::Request::ProspectSearch
Retrieve information about a known Prospect
Required initializer parameters:
@param pmc_id [String] the unique identifier for the property management
company in RealPage
@param site_id [String] the unique identifier for the property in RealPage
@guest_card_id [String] the unique identifier for the guest_card in
RealPage
Attributes
guest_card_id[R]
request_params[R]
Private Instance Methods
after_initialize(params)
click to toggle source
# File lib/real_page/request/prospect_search.rb, line 22 def after_initialize(params) @guest_card_id = params[:guest_card_id] unless guest_card_id raise ArgumentError, 'Params must include :guest_card_id' end @request_params = params end
parser()
click to toggle source
# File lib/real_page/request/prospect_search.rb, line 30 def parser DocumentParser::GuestCards.new( request_params: request_params, request_name: request_name ) end
request_name()
click to toggle source
# File lib/real_page/request/prospect_search.rb, line 37 def request_name self.class.name.split('::').last end
sections()
click to toggle source
# File lib/real_page/request/prospect_search.rb, line 41 def sections [ RequestSection::ProspectSearchCriterion.new( guest_card_id: guest_card_id ) ] end