Sha256: 4434cc33b412cd24569015534d5e0d6ad656255b0ce4d35ad2615f96eb576f06

Contents?: true

Size: 1.29 KB

Versions: 6

Compression:

Stored size: 1.29 KB

Contents

module GroupDocs
  class User < GroupDocs::Api::Entity

    # @attr [Integer] id
    attr_accessor :id
    # @attr [String] guid
    attr_accessor :guid
    # @attr [String] nickname
    attr_accessor :nickname
    # @attr [String] first_name
    attr_accessor :first_name
    # @attr [String] last_name
    attr_accessor :last_name
    # @attr [String] primary_email
    attr_accessor :primary_email
    # @attr [String] private_key
    attr_accessor :private_key
    # @attr [String] password_salt
    attr_accessor :password_salt
    # @attr [Integer] claimed_id
    attr_accessor :claimed_id
    # @attr [String] token
    attr_accessor :token
    # @attr [String] storage
    attr_accessor :storage
    # @attr [String] photo
    attr_accessor :photo
    # @attr [Boolean] active
    attr_accessor :active
    # @attr [Boolean] news_enabled
    attr_accessor :news_enabled
    # @attr [Time] signed_up_on
    attr_accessor :signed_up_on

    #
    # Converts timestamp which is return by API server to Time object.
    #
    # @return [Time]
    #
    def signed_up_on
      Time.at(@signed_up_on)
    end

    # Compatibility with response JSON
    alias_method :pkey=,       :private_key=
    alias_method :pswd_salt=,  :password_salt=
    alias_method :signedupOn=, :signed_up_on=

  end # User
end # GroupDocs

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
groupdocs-0.2.3 lib/groupdocs/user.rb
groupdocs-0.2.2 lib/groupdocs/user.rb
groupdocs-0.2.1 lib/groupdocs/user.rb
groupdocs-0.2 lib/groupdocs/user.rb
groupdocs-0.1.1 lib/groupdocs/user.rb
groupdocs-0.1.0 lib/groupdocs/user.rb