Class: Vk::Country
Instance Attribute Summary
Attributes inherited from Base
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>
8 9 10 |
# File 'lib/vk/country.rb', line 8 def regions @regions ||= loader.get_regions(id).all end |
#to_s ⇒ String
13 14 15 |
# File 'lib/vk/country.rb', line 13 def to_s title.to_s end |