Sha256: 9180a1b9337c492baa4206026b5b8ce86505b9e082cffafce90a5b7542b0541e
Contents?: true
Size: 1.52 KB
Versions: 21
Compression:
Stored size: 1.52 KB
Contents
module GroupDocs class Signature::Role < Api::Entity # # Returns array of predefined roles. # # @param [Hash] options Hash of options # @option options [String] :id Filter by identifier # @param [Hash] access Access credentials # @option access [String] :client_id # @option access [String] :private_key # @return [Array<GroupDocs::Signature::role>] # def self.get!(options = {}, access = {}) api = Api::Request.new do |request| request[:access] = access request[:method] = :GET request[:path] = '/signature/{{client_id}}/roles' end api.add_params(options) json = api.execute! json[:roles].map do |role| new(role) end end # @attr [String] id attr_accessor :id # @attr [String] name attr_accessor :name # @attr [Integer] canEdit attr_accessor :canEdit # @attr [Integer] canSign attr_accessor :canSign # @attr [Integer] canAnnotate attr_accessor :canAnnotate # @attr [Integer] canDelegate attr_accessor :canDelegate # Human-readable accessors alias_accessor :can_edit, :canEdit alias_accessor :can_sign, :canSign alias_accessor :can_annotate, :canAnnotate alias_accessor :can_delegate, :canDelegate # Boolean methods for Ruby DSL alias_method :can_edit?, :can_edit alias_method :can_sign?, :can_sign alias_method :can_annotate?, :can_annotate alias_method :can_delegate?, :can_delegate end # Signature::Role end # GroupDocs
Version data entries
21 entries across 21 versions & 1 rubygems