Class: Vk::API::Users::Military

Inherits:
Schema::Object show all
Defined in:
lib/vk/api/users/military.rb

Overview

Instance Method Summary collapse

Instance Method Details

#country_idInteger

Returns Country ID.

Returns:

  • (Integer)

    Country ID


15
# File 'lib/vk/api/users/military.rb', line 15

attribute :country_id, API::Types::Coercible::Int.optional.default(nil)

#fromInteger

Returns From year.

Returns:

  • (Integer)

    From year


17
# File 'lib/vk/api/users/military.rb', line 17

attribute :from, API::Types::Coercible::Int.optional.default(nil)

#unitString

Returns Unit name.

Returns:

  • (String)

    Unit name


11
# File 'lib/vk/api/users/military.rb', line 11

attribute :unit, API::Types::Coercible::String.optional.default(nil)

#unit_idInteger

Returns Unit ID.

Returns:

  • (Integer)

    Unit ID


13
# File 'lib/vk/api/users/military.rb', line 13

attribute :unit_id, API::Types::Coercible::Int.optional.default(nil)

#untilInteger

Returns Till year.

Returns:

  • (Integer)

    Till year


19
# File 'lib/vk/api/users/military.rb', line 19

attribute :until, API::Types::Coercible::Int.optional.default(nil)