Class: Vk::API::Newsfeed::NewsfeedPhoto
- Inherits:
-
Photos::Photo
- Object
- Dry::Struct
- Schema::Object
- Photos::Photo
- Vk::API::Newsfeed::NewsfeedPhoto
- Defined in:
- lib/vk/api/newsfeed/newsfeed_photo.rb
Overview
Instance Method Summary collapse
-
#can_comment ⇒ API::Base::BoolInt
Information whether current user can comment the photo.
-
#can_repost ⇒ API::Base::BoolInt
Information whether current user can repost the photo.
- #comments ⇒ Object
- #likes ⇒ API::Base::Likes
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
permalink #can_comment ⇒ API::Base::BoolInt
Returns Information whether current user can comment the photo.
15 |
# File 'lib/vk/api/newsfeed/newsfeed_photo.rb', line 15 attribute :can_comment, API::Base::BoolInt.optional.default(nil) |
permalink #can_repost ⇒ API::Base::BoolInt
Returns Information whether current user can repost the photo.
17 |
# File 'lib/vk/api/newsfeed/newsfeed_photo.rb', line 17 attribute :can_repost, API::Base::BoolInt.optional.default(nil) |
permalink #comments ⇒ Object
[View source] [View on GitHub]
13 |
# File 'lib/vk/api/newsfeed/newsfeed_photo.rb', line 13 attribute :comments, API::Types::Coercible::Hash.optional.default(nil) |
permalink #likes ⇒ API::Base::Likes
[View source] [View on GitHub]
11 |
# File 'lib/vk/api/newsfeed/newsfeed_photo.rb', line 11 attribute :likes, Dry::Types[API::Base::Likes].optional.default(nil) |