Sha256: 0fb401f62a6533e71c2339ee7a4aa4370142585cd091b9f1ae5bceff35b93b8f

Contents?: true

Size: 338 Bytes

Versions: 1

Compression:

Stored size: 338 Bytes

Contents

module JSONiCal
  class CreateOrUpdateVEVENTService

    def initialize(message)
      @version = message[:version] || 'v1'
      @data = message[:data] || message
    end

    def call
      JSONiCal::VEVENTSchema.validate!(@data, version: @version)
      JSONiCal::VEVENTRepo.insert(JSONiCal::VEVENTModel.new(@data))
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
JSONiCal-1.0.0 lib/jsonical/create_or_update_vevent_service.rb