Sha256: 2d77bd915a8422ac94202dc63248df71a630fc01b48ef85621bda499ac7fab37

Contents?: true

Size: 670 Bytes

Versions: 2

Compression:

Stored size: 670 Bytes

Contents

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

    # @attr [Integer] page
    attr_accessor :page
    # @attr [String] name
    attr_accessor :name
    # @attr [String] type
    attr_accessor :type
    # @attr [GroupDocs::Document::Rectangle] rectangle
    attr_accessor :rectangle

    #
    # Coverts passed hash to GroupDocs::Document::Rectangle object.
    #
    # @param [Hash] options
    # @return [GroupDocs::Document::Rectangle]
    #
    def rectangle=(options)
      @rectangle = GroupDocs::Document::Rectangle.new(options)
    end

    # Compatibility with response JSON
    alias_method :rect=, :rectangle=

  end # Document::Field
end # GroupDocs

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
groupdocs-1.1.0 lib/groupdocs/document/field.rb
groupdocs-1.0.0 lib/groupdocs/document/field.rb