Class: Vk::API::Newsfeed::NewsfeedPhoto

Inherits:
Photos::Photo show all
Defined in:
lib/vk/api/newsfeed/newsfeed_photo.rb

Overview

Instance Method Summary collapse

Methods inherited from Photos::Photo

#access_key, #album_id, #date, #height, #id, #lat, #long, #owner_id, #photo_1280, #photo_130, #photo_604, #photo_75, #photo_807, #post_id, #sizes, #text, #user_id, #width

Instance Method Details

#can_commentAPI::Base::BoolInt

Returns Information whether current user can comment the photo.

Returns:



15
# File 'lib/vk/api/newsfeed/newsfeed_photo.rb', line 15

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

#can_repostAPI::Base::BoolInt

Returns Information whether current user can repost the photo.

Returns:



17
# File 'lib/vk/api/newsfeed/newsfeed_photo.rb', line 17

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

#commentsObject



13
# File 'lib/vk/api/newsfeed/newsfeed_photo.rb', line 13

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

#likesAPI::Base::Likes



11
# File 'lib/vk/api/newsfeed/newsfeed_photo.rb', line 11

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