Sha256: f9543ec382320a5a6f08a97087af35c2f22cc63fb59ad26cc918f1ecb9008731
Contents?: true
Size: 430 Bytes
Versions: 4
Compression:
Stored size: 430 Bytes
Contents
# frozen_string_literal: true module AdequateSerialization module Options class Opts attr_reader :includes, :attachments, :options def initialize(includes: [], attach: {}, **options) @includes = Array(includes) @attachments = attach @options = options end end def self.from(*opts) Opts.new(opts[0] || {}) end def self.null Opts.new end end end
Version data entries
4 entries across 4 versions & 1 rubygems