Sha256: 57c9f6a3e52d9ab20bee8ffbe19f9a0514fbf9cfd1c7b7d041b27b78054f2e1e

Contents?: true

Size: 421 Bytes

Versions: 25

Compression:

Stored size: 421 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

25 entries across 25 versions & 1 rubygems

Version Path
ratis-3.4.3 lib/ratis/area.rb
ratis-3.4.2 lib/ratis/area.rb
ratis-3.4.1 lib/ratis/area.rb
ratis-3.4.0 lib/ratis/area.rb
ratis-3.3.7 lib/ratis/area.rb
ratis-3.3.6 lib/ratis/area.rb
ratis-3.3.5 lib/ratis/area.rb
ratis-3.3.4 lib/ratis/area.rb
ratis-3.3.3 lib/ratis/area.rb
ratis-3.3.2 lib/ratis/area.rb
ratis-3.3.1 lib/ratis/area.rb
ratis-3.3.0 lib/ratis/area.rb
ratis-3.2.1 lib/ratis/area.rb
ratis-3.2.0 lib/ratis/area.rb
ratis-3.1.8 lib/ratis/area.rb
ratis-3.1.7 lib/ratis/area.rb
ratis-3.1.6 lib/ratis/area.rb
ratis-3.1.5.1 lib/ratis/area.rb
ratis-3.1.5 lib/ratis/area.rb
ratis-3.1.4 lib/ratis/area.rb