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

Version Path
ratis-3.6.6 lib/ratis/area.rb
ratis-3.6.5 lib/ratis/area.rb
ratis-3.6.4 lib/ratis/area.rb
ratis-3.6.3 lib/ratis/area.rb
ratis-3.6.2 lib/ratis/area.rb
ratis-3.6.1 lib/ratis/area.rb
ratis-3.6.0 lib/ratis/area.rb
ratis-3.5.0 lib/ratis/area.rb