Sha256: 3fcf81e1647f7b33dbc1cf5961adcb93cd355523391cd477c3cc85b6c489ff2b

Contents?: true

Size: 1.73 KB

Versions: 1

Compression:

Stored size: 1.73 KB

Contents

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

module Vk
  module API
    class Groups < Vk::Schema::Namespace
      # @see https://github.com/VKCOM/vk-api-schema/blob/master/objects.json
      class Group < Vk::Schema::Object
        # @return [String] Community ID
        attribute :id, API::Types::Coercible::String.optional
        # @return [String] Community name
        attribute :name, API::Types::Coercible::String.optional
        # @return [String] Domain of the community page
        attribute :screen_name, API::Types::Coercible::String.optional
        # @return [Integer] Information whether community is closed
        attribute :is_closed, API::Types::Coercible::Int.optional
        # @return [String] Community type
        attribute :type, API::Types::Coercible::String.optional
        # @return [Integer] Information whether current user is administrator
        attribute :is_admin, API::Types::Coercible::Int.optional
        # @return [Integer] Level of current user's credentials as manager
        attribute :admin_level, API::Types::Coercible::Int.optional
        # @return [API::Base::BoolInt] Information whether current user is member
        attribute :is_member, API::Base::BoolInt.optional
        # @return [String] URL of square photo of the community with 50 pixels in width
        attribute :photo_50, API::Types::Coercible::String.optional
        # @return [String] URL of square photo of the community with 100 pixels in width
        attribute :photo_100, API::Types::Coercible::String.optional
        # @return [String] URL of square photo of the community with 200 pixels in width
        attribute :photo_200, API::Types::Coercible::String.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/groups/group.rb