Sha256: 2231184aadc47ecf217733cc29975e0c03e59ab83d5fa21fc5d44b201d19e1b8
Contents?: true
Size: 1 KB
Versions: 5
Compression:
Stored size: 1 KB
Contents
# frozen_string_literal: true class PublishEvent attr_accessor :hashed, :units, :published_at, :exposures, :goals, :attributes def initialize @published_at = 0 @hashed = false end def ==(o) return true if self.object_id == o.object_id return false if o.nil? || self.class != o.class that = o @hashed == that.hashed && @units == that.units && @published_at == that.published_at && @exposures == that.exposures && @goals == that.goals && @attributes == that.attributes end def hash_code { hashed: @hashed, units: @units, published_at: @published_at, exposures: @exposures, goals: @goals, attributes: @attributes } end def to_s "PublishEvent{" + "hashedUnits=#{@hashed}" + ", units=#{@units.inspect}" + ", publishedAt=#{@published_at}" + ", exposures=#{@exposures.inspect}" + ", goals=#{@goals.inspect}" + ", attributes=#{@attributes!=nil ? @attributes.join : ""}" + "}" end end
Version data entries
5 entries across 5 versions & 1 rubygems