Module: BookingsyncPortal

Defined in:
lib/bookingsync_portal.rb,
lib/bookingsync_portal/engine.rb,
lib/bookingsync_portal/version.rb,
lib/generators/bookingsync_portal/install_generator.rb,
app/helpers/bookingsync_portal/admin/application_helper.rb,
app/controllers/bookingsync_portal/admin/base_controller.rb,
app/controllers/bookingsync_portal/admin/help_controller.rb,
app/controllers/bookingsync_portal/application_controller.rb,
app/controllers/bookingsync_portal/admin/rentals_controller.rb,
app/controllers/bookingsync_portal/admin/connections_controller.rb,
app/controllers/bookingsync_portal/admin/remote_accounts_controller.rb

Defined Under Namespace

Modules: Admin, Generators, Routes Classes: Account, ApplicationController, BookingMap, Connection, Engine, MashSerializer, Photo, Rate, RemoteAccount, RemoteRental, Rental

Constant Summary collapse

VERSION =
'0.8.7'
@@portal_name =
'Portal'
@@create_remote_rental =
false
@@account_model =
'BookingsyncPortal::Account'
@@remote_account_model =
'BookingsyncPortal::RemoteAccount'
@@rental_model =
'BookingsyncPortal::Rental'
@@remote_rental_model =
'BookingsyncPortal::RemoteRental'
@@connection_model =
'BookingsyncPortal::Connection'
@@photo_model =
'BookingsyncPortal::Photo'
@@rate_model =
'BookingsyncPortal::Rate'

Class Method Summary collapse

Class Method Details

.fetch_remote_rentals(account) ⇒ Object

fetch remote rentals



64
65
66
# File 'lib/bookingsync_portal.rb', line 64

def self.fetch_remote_rentals()
  # return false if remote account is not present or not valid
end

.setup {|_self| ... } ⇒ Object

Default way to setup BookingsyncPortal. Run rails generate bookingsync_portal:install to create a fresh initializer with all configuration values.

Yields:

  • (_self)

Yield Parameters:

Raises:

  • (ArgumentError)


70
71
72
73
74
75
76
# File 'lib/bookingsync_portal.rb', line 70

def self.setup
  yield self
  raise ArgumentError.new("message_bus_channel_scope must be defined") unless message_bus_channel_scope.present?
  ::MessageBus.site_id_lookup do
    message_bus_channel_scope
  end
end