Class: Vk::Region

Inherits:
Base
  • Object
show all
Defined in:
lib/vk/region.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

#countryObject



7
8
9
# File 'lib/vk/region.rb', line 7

def country
  @country ||= Vk::Country.find(country_id)
end

#to_sObject



11
12
13
# File 'lib/vk/region.rb', line 11

def to_s
  title
end