Sha256: 62d48def4d0d0f9d948eddd9903a4155699faf34327302bd51f48652d50b7b51

Contents?: true

Size: 507 Bytes

Versions: 24

Compression:

Stored size: 507 Bytes

Contents

module Ratis

  class LandmarkCategory

    attr_accessor :type, :description

    def self.all

      response = Request.get 'Getcategories'
      return [] unless response.success?

      response.to_array(:getcategories_response, :types, :typeinfo).map do |typeinfo|
        atis_landmark_category = LandmarkCategory.new
        atis_landmark_category.type = typeinfo[:type]
        atis_landmark_category.description = typeinfo[:description]
        atis_landmark_category
      end
    end

  end

end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
ratis-2.5.2.5 lib/ratis/landmark_category.rb
ratis-2.5.2.4 lib/ratis/landmark_category.rb
ratis-2.5.2.2 lib/ratis/landmark_category.rb
ratis-2.5.2.1 lib/ratis/landmark_category.rb