Class: Vk::API::Market::Methods::Search
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Market::Methods::Search
- Defined in:
- lib/vk/api/market/methods/search.rb
Overview
Searches market items in a community's catalog
Arguments collapse
-
#count ⇒ Integer
Number of items to return.
-
#extended ⇒ Boolean
'1' – to return additional fields: 'likes, can_comment, car_repost, photos'.
-
#offset ⇒ Integer
Offset needed to return a specific subset of results.
-
#owner_id ⇒ Integer
ID of an items owner community.
-
#price_from ⇒ Integer
Minimum item price value.
-
#price_to ⇒ Integer
Maximum item price value.
-
#q ⇒ String
Search query, for example "pink slippers".
-
#rev ⇒ Integer
'0' — do not use reverse order, '1' — use reverse order.
-
#tags ⇒ Array
Comma-separated tag IDs list.
Instance Method Summary collapse
- #initialize(arguments) ⇒ Market::Methods::Search constructor
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Market::Methods::Search
|
# File 'lib/vk/api/market/methods/search.rb', line 15
|
Instance Method Details
#count ⇒ Integer
Returns Number of items to return.
45 |
# File 'lib/vk/api/market/methods/search.rb', line 45 attribute :count, API::Types::Coercible::Int.optional.default(20) |
#extended ⇒ Boolean
Returns '1' – to return additional fields: 'likes, can_comment, car_repost, photos'. By default: '0'.
47 |
# File 'lib/vk/api/market/methods/search.rb', line 47 attribute :extended, API::Types::Form::Bool.optional.default(false) |
#offset ⇒ Integer
Returns Offset needed to return a specific subset of results.
43 |
# File 'lib/vk/api/market/methods/search.rb', line 43 attribute :offset, API::Types::Coercible::Int.optional.default(nil) |
#owner_id ⇒ Integer
Returns ID of an items owner community.
31 |
# File 'lib/vk/api/market/methods/search.rb', line 31 attribute :owner_id, API::Types::Coercible::Int |
#price_from ⇒ Integer
Returns Minimum item price value.
35 |
# File 'lib/vk/api/market/methods/search.rb', line 35 attribute :price_from, API::Types::Coercible::Int.optional.default(nil) |
#price_to ⇒ Integer
Returns Maximum item price value.
37 |
# File 'lib/vk/api/market/methods/search.rb', line 37 attribute :price_to, API::Types::Coercible::Int.optional.default(nil) |
#q ⇒ String
Returns Search query, for example "pink slippers".
33 |
# File 'lib/vk/api/market/methods/search.rb', line 33 attribute :q, API::Types::Coercible::String.optional.default(nil) |