Class: BookingsyncPortal::RemoteRental

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/bookingsync_portal/remote_rental.rb

Direct Known Subclasses

RemoteRental

Instance Method Summary collapse

Instance Method Details

#connected?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'app/models/bookingsync_portal/remote_rental.rb', line 22

def connected?
  rental.present?
end

#display_nameObject



18
19
20
# File 'app/models/bookingsync_portal/remote_rental.rb', line 18

def display_name
  uid
end

#synchronized?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'app/models/bookingsync_portal/remote_rental.rb', line 26

def synchronized?
  synchronized_at.present?
end