Class: Vk::API::Docs::Doc
- Inherits:
-
Schema::Object
- Object
- Dry::Struct
- Schema::Object
- Vk::API::Docs::Doc
- Defined in:
- lib/vk/api/docs/doc.rb
Overview
Instance Method Summary collapse
-
#access_key ⇒ String
Access key for the document.
-
#date ⇒ Integer
Date when file has been uploaded in Unixtime.
-
#ext ⇒ String
File extension.
-
#id ⇒ Integer
Document ID.
-
#owner_id ⇒ Integer
Document owner ID.
- #preview ⇒ Object
-
#size ⇒ Integer
File size in bites.
-
#title ⇒ String
Document title.
-
#type ⇒ Integer
Document type.
-
#url ⇒ String
File URL.
Instance Method Details
#access_key ⇒ String
Returns 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.
23 |
# File 'lib/vk/api/docs/doc.rb', line 23 attribute :date, API::Types::Coercible::Int |
#ext ⇒ String
Returns File extension.
19 |
# File 'lib/vk/api/docs/doc.rb', line 19 attribute :ext, API::Types::Coercible::String |
#id ⇒ Integer
Returns 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.
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.
17 |
# File 'lib/vk/api/docs/doc.rb', line 17 attribute :size, API::Types::Coercible::Int |
#title ⇒ String
Returns Document title.
15 |
# File 'lib/vk/api/docs/doc.rb', line 15 attribute :title, API::Types::Coercible::String |