Class: Yardi::Parameter::Property

Inherits:
Object
  • Object
show all
Defined in:
lib/yardi/parameter/property.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(remote_id:, first_contact_time:, tour_notes: nil, tour_remote_id: nil, tour_time: nil) ⇒ Property

Returns a new instance of Property.

Parameters:

  • first_contact_time (Time)

    The time of the renter’s first contact with the property, in the property’s time zone

  • remote_id (String)

    The ID associated with the property in Yardi’s system. From Apartment List, property.remote_property_id

  • tour_notes (String) (defaults to: nil)

    The notes to be inserted to the Comments node in the Appointment event.

  • tour_remote_id (String) (defaults to: nil)

    The ID in Yardi’s system of the renter’s tour, or nil if there is no tour for the renter at the property.

  • tour_time (Time) (defaults to: nil)

    The time of the renter’s tour, or nil if there is no tour for the renter at the property.



20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/yardi/parameter/property.rb', line 20

def initialize(
  remote_id:,
  first_contact_time:,
  tour_notes: nil,
  tour_remote_id: nil,
  tour_time: nil
)
  @first_contact_time = first_contact_time
  @remote_id = remote_id
  @tour_notes = tour_notes
  @tour_remote_id = tour_remote_id
  @tour_time = tour_time
end

Instance Attribute Details

#first_contact_timeObject (readonly)

Returns the value of attribute first_contact_time.



4
5
6
# File 'lib/yardi/parameter/property.rb', line 4

def first_contact_time
  @first_contact_time
end

#remote_idObject (readonly)

Returns the value of attribute remote_id.



4
5
6
# File 'lib/yardi/parameter/property.rb', line 4

def remote_id
  @remote_id
end

#tour_notesObject (readonly)

Returns the value of attribute tour_notes.



4
5
6
# File 'lib/yardi/parameter/property.rb', line 4

def tour_notes
  @tour_notes
end

#tour_remote_idObject (readonly)

Returns the value of attribute tour_remote_id.



4
5
6
# File 'lib/yardi/parameter/property.rb', line 4

def tour_remote_id
  @tour_remote_id
end

#tour_timeObject (readonly)

Returns the value of attribute tour_time.



4
5
6
# File 'lib/yardi/parameter/property.rb', line 4

def tour_time
  @tour_time
end