Sha256: 6f743b827737efbbefd295ac8b940e7b53bc78e0659bfb82c756c170cf16512b
Contents?: true
Size: 271 Bytes
Versions: 3
Compression:
Stored size: 271 Bytes
Contents
require 'vk/base' module Vk class Country < Base self.key_field = :cid self.fields = [:cid, :name] def to_s name end protected def load_data(options = {}) @attributes = @attributes.merge(loader.get_country(id)) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vk-0.0.4 | lib/vk/country.rb |
vk-0.0.3 | lib/vk/country.rb |
vk-0.0.2 | lib/vk/country.rb |