Sha256: 10e0897bf45f9d6af531a4a2ae4b8f7c22098806dd3cbec09cf19ef941bb7531

Contents?: true

Size: 555 Bytes

Versions: 7

Compression:

Stored size: 555 Bytes

Contents

module Yardi
  module Model
    class Event
      attr_reader :remote_id, :type, :timestamp, :first_contact,
                  :transaction_source

      # timestamp is a string that does not include timezone, so we leave it to
      # the client to parse correctly.
      def initialize(remote_id:, type:, timestamp:, first_contact:, transaction_source:)
        @remote_id = remote_id
        @type = type
        @timestamp = timestamp
        @first_contact = first_contact
        @transaction_source = transaction_source
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
yardi-4.11.4 lib/yardi/model/event.rb
yardi-4.11.3 lib/yardi/model/event.rb
yardi-5.0.1 lib/yardi/model/event.rb
yardi-4.11.2 lib/yardi/model/event.rb
yardi-4.11.1 lib/yardi/model/event.rb
yardi-4.11.0 lib/yardi/model/event.rb
yardi-4.0.8 lib/yardi/model/event.rb