Class: Vk::API::Audio::Methods::Search
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Audio::Methods::Search
- Defined in:
- lib/vk/api/audio/methods/search.rb
Overview
Returns a list of audio matching the search criteria.
Arguments collapse
-
#auto_complete ⇒ Boolean
'1' — to correct for mistakes in the search query (e.g., if you enter 'Beetles', the system will search for 'Beatles').
-
#count ⇒ Integer
Number of audio files to return.
-
#lyrics ⇒ Boolean
'1' — to return only audio files that have associated lyrics.
-
#offset ⇒ Integer
Offset needed to return a specific subset of audio files.
-
#performer_only ⇒ Boolean
'1' — to search only by artist name.
-
#q ⇒ String
Search query string (e.g., 'The Beatles').
-
#search_own ⇒ Boolean
'1' — to search among current user's audios.
-
#sort ⇒ Integer
Sort order: ; '1' — by duration;; '2' — by popularity;; '0' — by date added.
Instance Method Summary collapse
- #initialize(arguments) ⇒ Audio::Methods::Search constructor
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Audio::Methods::Search
|
# File 'lib/vk/api/audio/methods/search.rb', line 15
|
Instance Method Details
#auto_complete ⇒ Boolean
Returns '1' — to correct for mistakes in the search query (e.g., if you enter 'Beetles', the system will search for 'Beatles').
32 |
# File 'lib/vk/api/audio/methods/search.rb', line 32 attribute :auto_complete, API::Types::Form::Bool.optional.default(nil) |
#count ⇒ Integer
Returns Number of audio files to return.
44 |
# File 'lib/vk/api/audio/methods/search.rb', line 44 attribute :count, API::Types::Coercible::Int.optional.default(30) |
#lyrics ⇒ Boolean
Returns '1' — to return only audio files that have associated lyrics.
34 |
# File 'lib/vk/api/audio/methods/search.rb', line 34 attribute :lyrics, API::Types::Form::Bool.optional.default(nil) |
#offset ⇒ Integer
Returns Offset needed to return a specific subset of audio files.
42 |
# File 'lib/vk/api/audio/methods/search.rb', line 42 attribute :offset, API::Types::Coercible::Int.optional.default(nil) |
#performer_only ⇒ Boolean
Returns '1' — to search only by artist name.
36 |
# File 'lib/vk/api/audio/methods/search.rb', line 36 attribute :performer_only, API::Types::Form::Bool.optional.default(nil) |
#q ⇒ String
Returns Search query string (e.g., 'The Beatles').
30 |
# File 'lib/vk/api/audio/methods/search.rb', line 30 attribute :q, API::Types::Coercible::String.optional.default(nil) |