Sha256: 297b80baece519c5274ca92baa15c1df9659b626cc04edee638f5800c8d74362

Contents?: true

Size: 896 Bytes

Versions: 7

Compression:

Stored size: 896 Bytes

Contents

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

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

    # added in release 1.7.0
    # @attr [String] contentType
    attr_accessor :contentType
    # @attr [List<GroupDocs::DataSource::Field>] nested_fields
    attr_accessor :nested_fields
    # @attr [String] regionName
    attr_accessor :regionName
    # @attr [String] dimension
    attr_accessor :dimension
    #
    # 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

7 entries across 7 versions & 1 rubygems

Version Path
groupdocs-2.2.0 lib/groupdocs/datasource/field.rb
groupdocs-2.1.0 lib/groupdocs/datasource/field.rb
groupdocs-2.0.0 lib/groupdocs/datasource/field.rb
groupdocs-1.9.0 lib/groupdocs/datasource/field.rb
groupdocs-1.8.1 lib/groupdocs/datasource/field.rb
groupdocs-1.8.0 lib/groupdocs/datasource/field.rb
groupdocs-1.7.0 lib/groupdocs/datasource/field.rb