Class: Vk::API::Groups::Methods::Create
- Inherits:
-
Schema::Method
- Object
- Dry::Struct
- Schema::Method
- Vk::API::Groups::Methods::Create
- Defined in:
- lib/vk/api/groups/methods/create.rb
Overview
Creates a new community.
Arguments collapse
-
#description ⇒ String
Community description (ignored for 'type' = 'public').
-
#public_category ⇒ Integer
Category ID (for 'type' = 'public' only).
-
#subtype ⇒ Integer
Public page subtype.
-
#title ⇒ String
Community title.
-
#type ⇒ String
Community type.
Instance Method Summary collapse
- #initialize(arguments) ⇒ Groups::Methods::Create constructor
Methods inherited from Schema::Method
Constructor Details
#initialize(arguments) ⇒ Groups::Methods::Create
|
# File 'lib/vk/api/groups/methods/create.rb', line 15
|
Instance Method Details
#description ⇒ String
Returns Community description (ignored for 'type' = 'public').
29 |
# File 'lib/vk/api/groups/methods/create.rb', line 29 attribute :description, API::Types::Coercible::String.optional.default(nil) |
#public_category ⇒ Integer
Returns Category ID (for 'type' = 'public' only).
33 |
# File 'lib/vk/api/groups/methods/create.rb', line 33 attribute :public_category, API::Types::Coercible::Int.optional.default(nil) |
#subtype ⇒ Integer
Returns Public page subtype. Possible values:; *'1' – place or small business;; *'2' – company, organizaton or website;; *'3' – famous person or group of people;; *'4' – product or work of art.
35 |
# File 'lib/vk/api/groups/methods/create.rb', line 35 attribute :subtype, API::Types::Coercible::Int.optional.default(nil) |