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-3.3.3 lib/ratis/landmark_category.rb
ratis-3.3.2 lib/ratis/landmark_category.rb
ratis-3.3.1 lib/ratis/landmark_category.rb
ratis-3.3.0 lib/ratis/landmark_category.rb
ratis-3.2.1 lib/ratis/landmark_category.rb
ratis-3.2.0 lib/ratis/landmark_category.rb
ratis-3.1.8 lib/ratis/landmark_category.rb
ratis-3.1.7 lib/ratis/landmark_category.rb
ratis-3.1.6 lib/ratis/landmark_category.rb
ratis-3.1.5.1 lib/ratis/landmark_category.rb
ratis-3.1.5 lib/ratis/landmark_category.rb
ratis-3.1.4 lib/ratis/landmark_category.rb
ratis-3.1.3 lib/ratis/landmark_category.rb
ratis-3.1.2 lib/ratis/landmark_category.rb
ratis-3.1.1 lib/ratis/landmark_category.rb
ratis-3.1.0 lib/ratis/landmark_category.rb
ratis-3.0.0 lib/ratis/landmark_category.rb
ratis-2.5.2.8 lib/ratis/landmark_category.rb
ratis-2.5.2.7 lib/ratis/landmark_category.rb
ratis-2.5.2.6 lib/ratis/landmark_category.rb