Sha256: 5c78af33502e800126427ff1ea0f3d0ba9207934ed752c3cd459e4f7dbd1b08e

Contents?: true

Size: 823 Bytes

Versions: 8

Compression:

Stored size: 823 Bytes

Contents

module Puree
  module Model

    # A resource.
    #
    class Resource

      # @return [String, nil]
      attr_reader :uuid

      # @return [String, nil]
      attr_reader :created_by

      # @return [Time, nil]
      attr_reader :created_at

      # @return [String, nil]
      attr_reader :modified_by

      # @return [Time, nil]
      attr_reader :modified_at

      # @param v [String]
      def uuid=(v)
        @uuid = v if v && !v.empty?
      end

      # @param v [String]
      def created_by=(v)
        @created_by = v
      end

      # @param v [Time]
      def created_at=(v)
        @created_at = v
      end

      # @param v [String]
      def modified_by=(v)
        @modified_by = v
      end

      # @param v [Time]
      def modified_at=(v)
        @modified_at = v
      end

    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
puree-2.5.1 lib/puree/model/resource.rb
puree-2.5.0 lib/puree/model/resource.rb
puree-2.4.0 lib/puree/model/resource.rb
puree-2.3.0 lib/puree/model/resource.rb
puree-2.2.0 lib/puree/model/resource.rb
puree-2.1.1 lib/puree/model/resource.rb
puree-2.1.0 lib/puree/model/resource.rb
puree-2.0.0 lib/puree/model/resource.rb