dashofcode/tracker_api

View on GitHub
lib/tracker_api/resources/activity.rb

Summary

Maintainability
A
0 mins
Test Coverage
module TrackerApi
  module Resources
    class Activity
      include Shared::Base
      include Equalizer.new(:guid)

      attribute :client

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

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