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)


24
25
26
# File 'app/models/bookingsync_portal/remote_rental.rb', line 24

def connected?
  rental.present?
end

#display_nameObject



20
21
22
# File 'app/models/bookingsync_portal/remote_rental.rb', line 20

def display_name
  uid
end

#synchronized?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'app/models/bookingsync_portal/remote_rental.rb', line 28

def synchronized?
  synchronized_at.present?
end