Class: Vk::API::Status::Methods::Set

Inherits:
Schema::Method show all
Defined in:
lib/vk/api/status/methods/set.rb

Overview

Sets a new status for the current user.

Arguments collapse

Instance Method Summary collapse

Methods inherited from Schema::Method

#call, #method, #to_hash

Constructor Details

#initialize(arguments) ⇒ Status::Methods::Set

Parameters:

  • arguments (Hash)

Options Hash (arguments):

  • :text (String)

    Text of the new status.

  • :group_id (Integer)

    Identifier of a community to set a status in. If left blank the status is set to current user.


# File 'lib/vk/api/status/methods/set.rb', line 15

Instance Method Details

#group_idInteger

Returns Identifier of a community to set a status in. If left blank the status is set to current user.

Returns:

  • (Integer)

    Identifier of a community to set a status in. If left blank the status is set to current user.


26
# File 'lib/vk/api/status/methods/set.rb', line 26

attribute :group_id, API::Types::Coercible::Int.optional.default(nil)

#textString

Returns Text of the new status.

Returns:

  • (String)

    Text of the new status.


24
# File 'lib/vk/api/status/methods/set.rb', line 24

attribute :text, API::Types::Coercible::String.optional.default(nil)