Class: VacationRentalsIcalAdapters::Adapters

Inherits:
Object
  • Object
show all
Defined in:
lib/vacation_rentals_ical_adapters/adapters.rb

Defined Under Namespace

Classes: CsvBookedDaysAdapter, IcalAdapter, JsonAvailabilityMapAdapter, XmlArkianeAdapter

Class Method Summary collapse

Class Method Details

.adapter_for(body:, source:) ⇒ Object



4
5
6
7
8
# File 'lib/vacation_rentals_ical_adapters/adapters.rb', line 4

def self.adapter_for(body:, source:)
  registry.find_adapter do |adapter|
    adapter.applicable?(body: body, source: source)
  end
end