Sha256: 8ce436dfedb3afbcb8d061d948dbef5d718d44f0868e5e3f8e00e23e226726e3

Contents?: true

Size: 608 Bytes

Versions: 2

Compression:

Stored size: 608 Bytes

Contents

module TrackerApi
  module Resources
    class Activity
      include Virtus.model
      include Equalizer.new(:guid)

      attribute :client

      attribute :kind, String
      attribute :guid, String
      attribute :project_version, Integer
      attribute :message, String
      attribute :highlight, String
      attribute :changes, Array[Change]
      attribute :primary_resources, Array[PrimaryResource]
      attribute :project, Project
      attribute :performed_by, Person
      attribute :occurred_at, DateTime

      def project=(data)
        super.client = client
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tracker_api-0.2.12 lib/tracker_api/resources/activity.rb
tracker_api-0.2.11 lib/tracker_api/resources/activity.rb