Sha256: fccd4af03d912e039b07b2aa62ccfc76a41c07784de44cad9ac586c92905b2f3

Contents?: true

Size: 596 Bytes

Versions: 4

Compression:

Stored size: 596 Bytes

Contents

module GroupDocs
  class DataSource::Field < GroupDocs::Api::Entity

    # @attr [String] name
    attr_accessor :name
    # @attr [Integer] type
    attr_accessor :type
    # @attr [Array<String>] values
    attr_accessor :values

    #
    # Updates type with machine-readable format.
    #
    # @param [Symbol] type
    #
    def type=(type)
      @type = type.is_a?(Symbol) ? type.to_s.capitalize : type
    end

    #
    # Returns type in human-readable format.
    #
    # @return [Symbol]
    #
    def type
      @type.downcase.to_sym
    end

  end # DataSource::Field
end # GroupDocs

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
groupdocs-0.3.11 lib/groupdocs/datasource/field.rb
groupdocs-0.3.10 lib/groupdocs/datasource/field.rb
groupdocs-0.3.9 lib/groupdocs/datasource/field.rb
groupdocs-0.3.8 lib/groupdocs/datasource/field.rb