Class: Vk::API::Market::Methods::CreateComment
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Market::Methods::CreateComment
- Defined in:
- lib/vk/api/market/methods/create_comment.rb
Overview
Creates a new comment for an item.
Arguments collapse
-
#attachments ⇒ Array
Comma-separated list of objects attached to a comment.
-
#from_group ⇒ Boolean
'1' - comment will be published on behalf of a community, '0' - on behalf of a user (by default).
-
#guid ⇒ String
Random value to avoid resending one comment.
-
#item_id ⇒ Integer
Item ID.
-
#message ⇒ String
Comment text (required if 'attachments' parameter is not specified).
-
#owner_id ⇒ Integer
ID of an item owner community.
-
#reply_to_comment ⇒ Integer
ID of a comment to reply with current comment to.
-
#sticker_id ⇒ Integer
Sticker ID.
Instance Method Summary collapse
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Market::Methods::CreateComment
|
# File 'lib/vk/api/market/methods/create_comment.rb', line 15
|
Instance Method Details
#attachments ⇒ Array
Returns Comma-separated list of objects attached to a comment. The field is submitted the following way: ; "'
36 |
# File 'lib/vk/api/market/methods/create_comment.rb', line 36 attribute :attachments, API::Types::Coercible::Array.member(API::Types::Coercible::String).optional.default(nil) |
#from_group ⇒ Boolean
Returns '1' - comment will be published on behalf of a community, '0' - on behalf of a user (by default).
38 |
# File 'lib/vk/api/market/methods/create_comment.rb', line 38 attribute :from_group, API::Types::Form::Bool.optional.default(nil) |
#guid ⇒ String
Returns Random value to avoid resending one comment.
44 |
# File 'lib/vk/api/market/methods/create_comment.rb', line 44 attribute :guid, API::Types::Coercible::String.optional.default(nil) |
#item_id ⇒ Integer
Returns Item ID.
32 |
# File 'lib/vk/api/market/methods/create_comment.rb', line 32 attribute :item_id, API::Types::Coercible::Int |
#message ⇒ String
Returns Comment text (required if 'attachments' parameter is not specified).
34 |
# File 'lib/vk/api/market/methods/create_comment.rb', line 34 attribute :message, API::Types::Coercible::String.optional.default(nil) |
#owner_id ⇒ Integer
Returns ID of an item owner community.
30 |
# File 'lib/vk/api/market/methods/create_comment.rb', line 30 attribute :owner_id, API::Types::Coercible::Int |