Class: Vk::API::Wall::Methods::Edit
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Wall::Methods::Edit
- Defined in:
- lib/vk/api/wall/methods/edit.rb
Overview
Edits a post on a user wall or community wall.
Arguments collapse
-
#attachments ⇒ Array
(Required if 'message' is not set.) List of objects attached to the post, in the following format:; "
, "; '' — Type of media attachment:; 'photo' — photo; 'video' — video; 'audio' — audio; 'doc' — document; ' ' — ID of the media application owner.; ' ' — Media application ID. -
#friends_only ⇒ Boolean
(Applies only when editing a scheduled post.); '1' — post will be available to friends only; '0' — post will be available to all users (default).
-
#lat ⇒ Number
Geographical latitude of the check-in, in degrees (from -90 to 90).
-
#long ⇒ Number
Geographical longitude of the check-in, in degrees (from -180 to 180).
- #mark_as_ads ⇒ Boolean
-
#message ⇒ String
(Required if 'attachments' is not set.) Text of the post.
-
#owner_id ⇒ Integer
User ID or community ID.
-
#place_id ⇒ Integer
ID of the location where the user was tagged.
-
#post_id ⇒ Integer
Post ID.
-
#publish_date ⇒ Integer
(Applies only to a scheduled post.) Publication date (in Unix time).
-
#services ⇒ String, 'facebook'
(Applies only to a scheduled post.) List of services or websites where status will be updated, if the user has so requested.
-
#signed ⇒ Boolean
(Applies only to a post that was created "as community" on a community wall.); '1' — to add the signature of the user who created the post.
Instance Method Summary collapse
- #initialize(arguments) ⇒ Wall::Methods::Edit constructor
Methods inherited from Schema::Method
Constructor Details
Instance Method Details
#attachments ⇒ Array
Returns (Required if 'message' is not set.) List of objects attached to the post, in the following format:; "
42 |
# File 'lib/vk/api/wall/methods/edit.rb', line 42 attribute :attachments, API::Types::Coercible::Array.member(API::Types::Coercible::String).optional.default(nil) |
#friends_only ⇒ Boolean
Returns (Applies only when editing a scheduled post.); '1' — post will be available to friends only; '0' — post will be available to all users (default).
38 |
# File 'lib/vk/api/wall/methods/edit.rb', line 38 attribute :friends_only, API::Types::Form::Bool.optional.default(nil) |
#lat ⇒ Number
Returns Geographical latitude of the check-in, in degrees (from -90 to 90).
50 |
# File 'lib/vk/api/wall/methods/edit.rb', line 50 attribute :lat, API::Types::Coercible::Int.optional.default(nil) |
#long ⇒ Number
Returns Geographical longitude of the check-in, in degrees (from -180 to 180).
52 |
# File 'lib/vk/api/wall/methods/edit.rb', line 52 attribute :long, API::Types::Coercible::Int.optional.default(nil) |
#mark_as_ads ⇒ Boolean
56 |
# File 'lib/vk/api/wall/methods/edit.rb', line 56 attribute :mark_as_ads, API::Types::Form::Bool.optional.default(nil) |
#message ⇒ String
Returns (Required if 'attachments' is not set.) Text of the post.
40 |
# File 'lib/vk/api/wall/methods/edit.rb', line 40 attribute :message, API::Types::Coercible::String.optional.default(nil) |
#owner_id ⇒ Integer
Returns User ID or community ID. Use a negative value to designate a community ID.
34 |
# File 'lib/vk/api/wall/methods/edit.rb', line 34 attribute :owner_id, API::Types::Coercible::Int.optional.default(nil) |
#place_id ⇒ Integer
Returns ID of the location where the user was tagged.
54 |
# File 'lib/vk/api/wall/methods/edit.rb', line 54 attribute :place_id, API::Types::Coercible::Int.optional.default(nil) |
#post_id ⇒ Integer
Returns Post ID.
36 |
# File 'lib/vk/api/wall/methods/edit.rb', line 36 attribute :post_id, API::Types::Coercible::Int |
#publish_date ⇒ Integer
Returns (Applies only to a scheduled post.) Publication date (in Unix time). If used, posting will be delayed until the set time.
48 |
# File 'lib/vk/api/wall/methods/edit.rb', line 48 attribute :publish_date, API::Types::Coercible::Int.optional.default(nil) |
#services ⇒ String, 'facebook'
Returns (Applies only to a scheduled post.) List of services or websites where status will be updated, if the user has so requested. Sample values: 'twitter', 'facebook'.
44 |
# File 'lib/vk/api/wall/methods/edit.rb', line 44 attribute :services, API::Types::Coercible::String.optional.default(nil) |