Sha256: 71acd1535e738bca41b4a41eb3fc1c54bbc2f3331e6ae4c66951060d945a1e9e

Contents?: true

Size: 634 Bytes

Versions: 2

Compression:

Stored size: 634 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, Shared::Collection[Change]
      attribute :primary_resources, Shared::Collection[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-1.1.0 lib/tracker_api/resources/activity.rb
tracker_api-1.0.0 lib/tracker_api/resources/activity.rb