Class: Vk::API::Photos::PhotoFull

Inherits:
Schema::Object show all
Defined in:
lib/vk/api/photos/photo_full.rb

Overview

Instance Method Summary collapse

Instance Method Details

#access_keyString

Returns Access key for the photo.

Returns:

  • (String)

    Access key for the photo



45
# File 'lib/vk/api/photos/photo_full.rb', line 45

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

#album_idInteger

Returns Album ID.

Returns:

  • (Integer)

    Album ID



13
# File 'lib/vk/api/photos/photo_full.rb', line 13

attribute :album_id, API::Types::Coercible::Int

#can_commentAPI::Base::BoolInt

Returns Information whether current user can comment the photo.

Returns:



53
# File 'lib/vk/api/photos/photo_full.rb', line 53

attribute :can_comment, API::Base::BoolInt.optional.default(nil)

#commentsObject



51
# File 'lib/vk/api/photos/photo_full.rb', line 51

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

#dateInteger

Returns Date when uploaded.

Returns:

  • (Integer)

    Date when uploaded



39
# File 'lib/vk/api/photos/photo_full.rb', line 39

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

#heightInteger

Returns Original photo height.

Returns:

  • (Integer)

    Original photo height



35
# File 'lib/vk/api/photos/photo_full.rb', line 35

attribute :height, API::Types::Coercible::Int.optional.default(nil)

#idInteger

Returns Photo ID.

Returns:

  • (Integer)

    Photo ID



11
# File 'lib/vk/api/photos/photo_full.rb', line 11

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

#latNumber

Returns Latitude.

Returns:

  • (Number)

    Latitude



41
# File 'lib/vk/api/photos/photo_full.rb', line 41

attribute :lat, API::Types::Coercible::Int.optional.default(nil)

#likesAPI::Base::Likes



47
# File 'lib/vk/api/photos/photo_full.rb', line 47

attribute :likes, Dry::Types[API::Base::Likes].optional.default(nil)

#longNumber

Returns Longitude.

Returns:

  • (Number)

    Longitude



43
# File 'lib/vk/api/photos/photo_full.rb', line 43

attribute :long, API::Types::Coercible::Int.optional.default(nil)

#owner_idInteger

Returns Photo owner's ID.

Returns:

  • (Integer)

    Photo owner's ID



15
# File 'lib/vk/api/photos/photo_full.rb', line 15

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

#photo_1280String

Returns URL of image with 1280 px width.

Returns:

  • (String)

    URL of image with 1280 px width



29
# File 'lib/vk/api/photos/photo_full.rb', line 29

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

#photo_130String

Returns URL of image with 130 px width.

Returns:

  • (String)

    URL of image with 130 px width



23
# File 'lib/vk/api/photos/photo_full.rb', line 23

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

#photo_604String

Returns URL of image with 604 px width.

Returns:

  • (String)

    URL of image with 604 px width



25
# File 'lib/vk/api/photos/photo_full.rb', line 25

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

#photo_75String

Returns URL of image with 75 px width.

Returns:

  • (String)

    URL of image with 75 px width



21
# File 'lib/vk/api/photos/photo_full.rb', line 21

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

#photo_807String

Returns URL of image with 807 px width.

Returns:

  • (String)

    URL of image with 807 px width



27
# File 'lib/vk/api/photos/photo_full.rb', line 27

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

#post_idInteger

Returns Post ID.

Returns:

  • (Integer)

    Post ID



31
# File 'lib/vk/api/photos/photo_full.rb', line 31

attribute :post_id, API::Types::Coercible::Int.optional.default(nil)

#repostsObject



49
# File 'lib/vk/api/photos/photo_full.rb', line 49

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

#sizesArray



19
# File 'lib/vk/api/photos/photo_full.rb', line 19

attribute :sizes, API::Types::Coercible::Array.member(API::Photos::PhotoSizes).optional.default(nil)

#tagsObject



55
# File 'lib/vk/api/photos/photo_full.rb', line 55

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

#textString

Returns Photo caption.

Returns:

  • (String)

    Photo caption



37
# File 'lib/vk/api/photos/photo_full.rb', line 37

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

#user_idInteger

Returns ID of the user who have uploaded the photo.

Returns:

  • (Integer)

    ID of the user who have uploaded the photo



17
# File 'lib/vk/api/photos/photo_full.rb', line 17

attribute :user_id, API::Types::Coercible::Int.optional.default(nil)

#widthInteger

Returns Original photo width.

Returns:

  • (Integer)

    Original photo width



33
# File 'lib/vk/api/photos/photo_full.rb', line 33

attribute :width, API::Types::Coercible::Int.optional.default(nil)