Sha256: 2b508ef98df1437f2380628aef81ad40fd9c6672f30f393ea7a5dd4cc9c020bb

Contents?: true

Size: 1.05 KB

Versions: 1

Compression:

Stored size: 1.05 KB

Contents

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

module Vk
  module API
    class Groups < Vk::Schema::Namespace
      module Methods
        # Allows to add a link to the community.
        class AddLink < Schema::Method
          # @!group Properties

          self.open = false
          self.method = 'groups.addLink'

          # @method initialize(arguments)
          #   @param [Hash] arguments
          #   @option arguments [Integer] :group_id Community ID.
          #   @option arguments [String] :link LInk URL.
          #   @option arguments [String] :text Description text for the link.
          #   @return [Groups::Methods::AddLink]

          # @!group Arguments

          # @return [Integer] Community ID.
          attribute :group_id, API::Types::Coercible::Int.optional
          # @return [String] LInk URL.
          attribute :link, API::Types::Coercible::String.optional
          # @return [String] Description text for the link.
          attribute :text, API::Types::Coercible::String.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/groups/methods/add_link.rb