Sha256: f8877dc0d77432006128ef47144882a27b37d81fc25f7c8554c8512390a3a012

Contents?: true

Size: 496 Bytes

Versions: 4

Compression:

Stored size: 496 Bytes

Contents

# frozen_string_literal: true

module Ukemi
  class Record
    attr_reader :data
    attr_reader :first_seen
    attr_reader :last_seen
    attr_reader :source

    def initialize(data:, first_seen: nil, last_seen: nil, source: nil)
      @data = data
      @first_seen = first_seen
      @last_seen = last_seen
      @source = source
    end

    def to_h
      {
        data: data,
        first_seen: first_seen,
        last_seen: last_seen,
        source: source
      }
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ukemi-0.4.0 lib/ukemi/record.rb
ukemi-0.3.0 lib/ukemi/record.rb
ukemi-0.2.0 lib/ukemi/record.rb
ukemi-0.1.0 lib/ukemi/record.rb