Sha256: d411cacd844f54cc148f1ce150a7f0cfb1baac1239d85688584b7204f20f6f6d

Contents?: true

Size: 442 Bytes

Versions: 26

Compression:

Stored size: 442 Bytes

Contents

# frozen_string_literal: true

module Quilt
  module Performance
    class EventMetadata
      attr_accessor :name
      attr_accessor :size

      def self.from_params(params)
        EventMetadata.new(
          name: params[:name],
          size: params[:size],
        )
      end

      def initialize(name:, size:)
        @name = name
        @size = size
      end

      def has_size?
        !size.nil?
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
quilt_rails-1.12.0 lib/quilt_rails/performance/event_metadata.rb
quilt_rails-1.11.1 lib/quilt_rails/performance/event_metadata.rb
quilt_rails-1.10.0 lib/quilt_rails/performance/event_metadata.rb
quilt_rails-1.9.2 lib/quilt_rails/performance/event_metadata.rb
quilt_rails-1.9.1 lib/quilt_rails/performance/event_metadata.rb
quilt_rails-1.9.0 lib/quilt_rails/performance/event_metadata.rb