class Yardi::Request::GetResidents

Get all residents for a given property ID.

Attributes

property_id[R]

Private Instance Methods

after_initialize(params) click to toggle source
# File lib/yardi/request/get_residents.rb, line 14
def after_initialize(params)
  @property_id = params[:property_id]
  raise ArgumentError, ':property_id is required' unless property_id
end
interface() click to toggle source
# File lib/yardi/request/get_residents.rb, line 34
def interface
  'ItfResidentData'
end
parser() click to toggle source
# File lib/yardi/request/get_residents.rb, line 19
def parser
  DocumentParser::Residents.new(property_id)
end
soap_action() click to toggle source
# File lib/yardi/request/get_residents.rb, line 30
def soap_action
  'GetResidents'
end
soap_body_sections() click to toggle source
# File lib/yardi/request/get_residents.rb, line 23
def soap_body_sections
  [
    RequestSection::Authentication.new(credential),
    RequestSection::Residents.new(property_id: property_id)
  ]
end