Class: Vk::API::Apps::Methods::Get
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Apps::Methods::Get
- Defined in:
- lib/vk/api/apps/methods/get.rb
Overview
Returns applications data.
Arguments collapse
-
#app_id ⇒ Integer
Application ID.
-
#app_ids ⇒ Array
List of application ID.
-
#fields ⇒ Array, 'bdate'
Profile fields to return.
-
#name_case ⇒ String
Case for declension of user name and surname:; 'nom' — nominative (default);; 'gen' — genitive;; 'dat' — dative;; 'acc' — accusative;; 'ins' — instrumental;; 'abl' — prepositional.; ; (only if 'return_friends' = '1').
-
#platform ⇒ String
Platform.
Instance Method Summary collapse
- #initialize(arguments) ⇒ Apps::Methods::Get constructor
Methods inherited from Schema::Method
Constructor Details
Instance Method Details
#app_id ⇒ Integer
Returns Application ID.
27 |
# File 'lib/vk/api/apps/methods/get.rb', line 27 attribute :app_id, API::Types::Coercible::Int.optional.default(nil) |
#app_ids ⇒ Array
Returns List of application ID.
29 |
# File 'lib/vk/api/apps/methods/get.rb', line 29 attribute :app_ids, API::Types::Coercible::Array.member(API::Types::Coercible::String).constrained(max_size: 100).optional.default(nil) |
#fields ⇒ Array, 'bdate'
Returns Profile fields to return. Sample values: 'nickname', 'screen_name', 'sex', 'bdate' (birthdate), 'city', 'country', 'timezone', 'photo', 'photo_medium', 'photo_big', 'has_mobile', 'contacts', 'education', 'online', 'counters', 'relation', 'last_seen', 'activity', 'can_write_private_message', 'can_see_all_posts', 'can_post', 'universities'; (only if return_friends - 1).
33 |
# File 'lib/vk/api/apps/methods/get.rb', line 33 attribute :fields, API::Types::Coercible::Array.member(API::Types::Coercible::String).optional.default(nil) |
#name_case ⇒ String
Returns Case for declension of user name and surname:; 'nom' — nominative (default);; 'gen' — genitive;; 'dat' — dative;; 'acc' — accusative;; 'ins' — instrumental;; 'abl' — prepositional.; ; (only if 'return_friends' = '1').
35 |
# File 'lib/vk/api/apps/methods/get.rb', line 35 attribute :name_case, API::Types::Coercible::String.enum("nom", "gen", "dat", "acc", "ins", "abl").optional.default(nil) |
#platform ⇒ String
Returns platform. Possible values:; *'ios' — iOS;; *'android' — Android;; *'winphone' — Windows Phone;; *'web' — приложения на vk.com.; By default: 'web'.
31 |
# File 'lib/vk/api/apps/methods/get.rb', line 31 attribute :platform, API::Types::Coercible::String.enum("web", "ios", "android", "winphone").optional.default("web") |