Class: Vk::API::Ads::Category

Inherits:
Schema::Object show all
Defined in:
lib/vk/api/ads/category.rb

Overview

Instance Method Summary collapse

Instance Method Details

#id ⇒ Integer

Returns Category ID.

Returns:

  • (Integer) —

    Category ID



11
# File 'lib/vk/api/ads/category.rb', line 11

attribute :id, API::Types::Coercible::Int

#name ⇒ String

Returns Category name.

Returns:

  • (String) —

    Category name



13
# File 'lib/vk/api/ads/category.rb', line 13

attribute :name, API::Types::Coercible::String

#subcategories ⇒ Array



15
# File 'lib/vk/api/ads/category.rb', line 15

attribute :subcategories, API::Types::Coercible::Array.member(API::Types::Coercible::Hash).optional.default(nil)