Sha256: 96e63bcf253c3014033fdeb3fe7a51826726229eabdafd8e0707c4db0d2a135a

Contents?: true

Size: 1.18 KB

Versions: 1

Compression:

Stored size: 1.18 KB

Contents

# frozen_string_literal: true

module Calendly
  # Calendly's activity log entry model.
  class ActivityLogEntry
    include ModelUtils
    UUID_RE = %r{\A#{Client::API_HOST}/activity_log_entries/(#{UUID_FORMAT})\z}.freeze
    TIME_FIELDS = %i[occurred_at].freeze

    def self.association
      {
        organization: Organization
      }
    end

    # @return [String]
    # unique id of the ActivityLogEntry object.
    attr_accessor :uuid

    # @return [String]
    # Canonical reference (unique identifier) for the activity log entry.
    attr_accessor :uri

    # @return [Time]
    # The date and time of the entry.
    attr_accessor :occurred_at

    # @return [Hash]
    # The Calendly actor that took the action creating the activity log entry.
    attr_accessor :actor

    # @return [Hash]
    attr_accessor :details

    # @return [String]
    attr_accessor :fully_qualified_name

    # @return [String]
    # The category associated with the entry.
    attr_accessor :namespace

    # @return [String]
    # The action associated with the entry.
    attr_accessor :action

    # @return [Organization]
    # The organization associated with the entry.
    attr_accessor :organization
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
calendly-0.14.0 lib/calendly/models/activity_log_entry.rb