Class: Yardi::RequestSection::Residents

Inherits:
Object
  • Object
show all
Defined in:
lib/yardi/request_section/residents.rb

Overview

Generate the data needed for a GetResidents call

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(property_id:) ⇒ Residents

Returns a new instance of Residents.



9
10
11
# File 'lib/yardi/request_section/residents.rb', line 9

def initialize(property_id:)
  @property_id = property_id
end

Instance Attribute Details

#property_idObject (readonly)

Returns the value of attribute property_id.



7
8
9
# File 'lib/yardi/request_section/residents.rb', line 7

def property_id
  @property_id
end

Instance Method Details

#generate(xml_builder) ⇒ Object



13
14
15
# File 'lib/yardi/request_section/residents.rb', line 13

def generate(xml_builder)
  xml_builder['itf'].YardiPropertyId property_id
end