Sha256: 245a30b569fcdf3e007dfb39c9fdd843fb455d1483128916fc9bc3fec77bbc21
Contents?: true
Size: 704 Bytes
Versions: 1
Compression:
Stored size: 704 Bytes
Contents
# frozen_string_literal: true require 'rom/struct' # For now we override this because adwords does not always return all the # key-value pairs they say they will. This setting allows for that to happen # without throwing an error. # # For more info: http://dry-rb.org/gems/dry-struct/constructor-types/ if ROM::Struct.respond_to?(:constructor_type) # rubocop:disable Style/GuardClause ROM::Struct.constructor_type :schema else raise <<~MSG Dry::Struct.constructor_type has been deprecated in v0.5.0, info how to fix is here: http://dry-rb.org/gems/dry-struct/constructor-types/ MSG end module Gladwords # @api public class Struct < ROM::Struct constructor_type :schema end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gladwords-1.0.1 | lib/gladwords/struct.rb |