Sha256: abfa2428cfdaf830417bd67e1de915b6bbd1f838bf566b641deca78f77f33d0b
Contents?: true
Size: 420 Bytes
Versions: 8
Compression:
Stored size: 420 Bytes
Contents
module Ratis class Area attr_accessor :area, :description def self.all response = Request.get 'Getareas' return [] unless response.success? response.to_array(:getareas_response, :areainfo).map do |areainfo| atis_area = Area.new atis_area.area = areainfo[:area] atis_area.description = areainfo[:description] atis_area end end end end
Version data entries
8 entries across 8 versions & 1 rubygems