Sha256: d2c5d1339a845cb23a3e04af86fde9347a13160b574e7768cdd6943063b037b0
Contents?: true
Size: 380 Bytes
Versions: 1
Compression:
Stored size: 380 Bytes
Contents
require 'vk/base' module Vk class Country < Base self.fields = [:id, :title] # @return [<Vk::Region>] def regions @regions ||= loader.get_regions(id).all end # @return [String] def to_s title.to_s end protected def load_data(options = {}) @attributes = @attributes.merge(loader.get_country_by_id(id)) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vk-0.6.5.53 | lib/vk/country.rb |