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_key ⇒ String

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)

#date ⇒ Integer

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

#ext ⇒ String

Returns File extension.

Returns:

  • (String) —

    File extension



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

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

#id ⇒ Integer

Returns Document ID.

Returns:

  • (Integer) —

    Document ID



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

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

#owner_id ⇒ Integer

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

#preview ⇒ Object



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

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

#size ⇒ Integer

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

#title ⇒ String

Returns Document title.

Returns:

  • (String) —

    Document title



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

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

#type ⇒ Integer

Returns Document type.

Returns:

  • (Integer) —

    Document type



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

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

#url ⇒ String

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)