Sha256: 5064ac1f2d9b276c2a0041e20437defe41a5c4b92a3c02440ce0b6f8e24871d6

Contents?: true

Size: 1.8 KB

Versions: 1

Compression:

Stored size: 1.8 KB

Contents

# frozen_string_literal: true
require 'vk/api/methods'

module Vk
  module API
    class Newsfeed < Vk::Schema::Namespace
      module Methods
        # Returns a list of posts on user walls in which the current user is mentioned.;
        class GetMentions < Schema::Method
          # @!group Properties

          self.open = false
          self.method = 'newsfeed.getMentions'

          # @method initialize(arguments)
          #   @param [Hash] arguments
          #   @option arguments [Integer] :owner_id Owner ID.
          #   @option arguments [Integer] :start_time Earliest timestamp (in Unix time) of a post to return. By default, 24 hours ago.;
          #   @option arguments [Integer] :end_time Latest timestamp (in Unix time) of a post to return. By default, the current time.;
          #   @option arguments [Integer] :offset Offset needed to return a specific subset of posts.
          #   @option arguments [Integer] :count Number of posts to return.
          #   @return [Newsfeed::Methods::GetMentions]

          # @!group Arguments

          # @return [Integer] Owner ID.
          attribute :owner_id, API::Types::Coercible::Int.optional
          # @return [Integer] Earliest timestamp (in Unix time) of a post to return. By default, 24 hours ago.;
          attribute :start_time, API::Types::Coercible::Int.optional
          # @return [Integer] Latest timestamp (in Unix time) of a post to return. By default, the current time.;
          attribute :end_time, API::Types::Coercible::Int.optional
          # @return [Integer] Offset needed to return a specific subset of posts.
          attribute :offset, API::Types::Coercible::Int.optional
          # @return [Integer] Number of posts to return.
          attribute :count, API::Types::Coercible::Int.optional
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vk-0.99.5.53.alpha lib/vk/api/newsfeed/methods/get_mentions.rb