Sha256: 050656cf9c1922bc93dcc0b6d9b07c36ccd50c43cd5befc3b684a6e3c8c495cd

Contents?: true

Size: 1.84 KB

Versions: 1

Compression:

Stored size: 1.84 KB

Contents

# frozen_string_literal: true
require 'vk/api/objects'
require 'vk/schema/namespace'

module Vk
  module API
    class Stats < Vk::Schema::Namespace
      # @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
      class Period < Vk::Schema::Object
        # @return [String] Day (YYYY-MM-DD)
        attribute :day, API::Types::Coercible::String.optional
        # @return [Integer] Views number
        attribute :views, API::Types::Coercible::Int.optional
        # @return [Integer] Visitors number
        attribute :visitors, API::Types::Coercible::Int.optional
        # @return [Integer] Total reach
        attribute :reach, API::Types::Coercible::Int.optional
        # @return [Integer] Subscribers reach
        attribute :reach_subscribers, API::Types::Coercible::Int.optional
        # @return [Integer] Number of users subscribed
        attribute :subscribed, API::Types::Coercible::Int.optional
        # @return [Integer] Number of users unsubscribed
        attribute :unsubscribed, API::Types::Coercible::Int.optional
        # @return [Array] @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
        attribute :sex, API::Types::Coercible::Array.optional
        # @return [Array] @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
        attribute :age, API::Types::Coercible::Array.optional
        # @return [Array] @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
        attribute :sex_age, API::Types::Coercible::Array.optional
        # @return [Array] @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
        attribute :cities, API::Types::Coercible::Array.optional
        # @return [Array] @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
        attribute :countries, API::Types::Coercible::Array.optional
      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/stats/period.rb