Class: Vk::API::Docs::Doc

Inherits:
Schema::Object show all
Defined in:
lib/vk/api/docs/doc.rb

Overview

Instance Method Summary collapse

Instance Method Details

#access_keyString

Returns Access key for the document.

Returns:

  • (String)

    Access key for the document


29
# File 'lib/vk/api/docs/doc.rb', line 29

attribute :access_key, API::Types::Coercible::String.optional.default(nil)

#dateInteger

Returns Date when file has been uploaded in Unixtime.

Returns:

  • (Integer)

    Date when file has been uploaded in Unixtime


23
# File 'lib/vk/api/docs/doc.rb', line 23

attribute :date, API::Types::Coercible::Int

#extString

Returns File extension.

Returns:

  • (String)

    File extension


19
# File 'lib/vk/api/docs/doc.rb', line 19

attribute :ext, API::Types::Coercible::String

#idInteger

Returns Document ID.

Returns:

  • (Integer)

    Document ID


11
# File 'lib/vk/api/docs/doc.rb', line 11

attribute :id, API::Types::Coercible::Int

#owner_idInteger

Returns Document owner ID.

Returns:

  • (Integer)

    Document owner ID


13
# File 'lib/vk/api/docs/doc.rb', line 13

attribute :owner_id, API::Types::Coercible::Int

#previewObject


27
# File 'lib/vk/api/docs/doc.rb', line 27

attribute :preview, API::Types::Coercible::Hash.optional.default(nil)

#sizeInteger

Returns File size in bites.

Returns:

  • (Integer)

    File size in bites


17
# File 'lib/vk/api/docs/doc.rb', line 17

attribute :size, API::Types::Coercible::Int

#titleString

Returns Document title.

Returns:

  • (String)

    Document title


15
# File 'lib/vk/api/docs/doc.rb', line 15

attribute :title, API::Types::Coercible::String

#typeInteger

Returns Document type.

Returns:

  • (Integer)

    Document type


25
# File 'lib/vk/api/docs/doc.rb', line 25

attribute :type, API::Types::Coercible::Int

#urlString

Returns File URL.

Returns:

  • (String)

    File URL


21
# File 'lib/vk/api/docs/doc.rb', line 21

attribute :url, API::Types::Coercible::String.optional.default(nil)