Class: Vk::Region
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
#country ⇒ Object
7 8 9 |
# File 'lib/vk/region.rb', line 7 def country @country ||= Vk::Country.find(country_id) end |
#to_s ⇒ Object
11 12 13 |
# File 'lib/vk/region.rb', line 11 def to_s title end |