Class: Vk::Country

Inherits:
Base
  • Object
show all
Defined in:
lib/vk/country.rb

Instance Attribute Summary

Attributes inherited from Base

#attributes

Instance Method Summary collapse

Methods inherited from Base

#fields, find, #id, #id=, #identity_map, inherited, #initialize, #inspect, #key_field, #loader, #logger, method_missing, #method_missing, #read_attribute, #respond_to_missing?, #to_hash

Constructor Details

This class inherits a constructor from Vk::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Vk::Base

Instance Method Details

#regions<Vk::Region>

Returns:



8
9
10
# File 'lib/vk/country.rb', line 8

def regions
  @regions ||= loader.get_regions(id).all
end

#to_sString

Returns:

  • (String)


13
14
15
# File 'lib/vk/country.rb', line 13

def to_s
  title.to_s
end