Sha256: 54595ae1130e51bacf74a43896eba9080c1193ab99ee0a4b749b75b759de384f

Contents?: true

Size: 227 Bytes

Versions: 36

Compression:

Stored size: 227 Bytes

Contents

require 'quick_travel/adapter'

module QuickTravel
  class Location < Adapter
    self.api_base = '/locations'
    self.lookup = true

    def regions
      Region.all.select { |r| region_ids.include?(r.id) }
    end
  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
quicktravel_client-4.7.0 lib/quick_travel/location.rb
quicktravel_client-4.6.0 lib/quick_travel/location.rb
quicktravel_client-4.5.0 lib/quick_travel/location.rb
quicktravel_client-4.4.0 lib/quick_travel/location.rb
quicktravel_client-4.3.2 lib/quick_travel/location.rb
quicktravel_client-4.3.1 lib/quick_travel/location.rb
quicktravel_client-4.3.0 lib/quick_travel/location.rb
quicktravel_client-4.2.0 lib/quick_travel/location.rb
quicktravel_client-4.1.0 lib/quick_travel/location.rb
quicktravel_client-4.0.0 lib/quick_travel/location.rb
quicktravel_client-3.9.0 lib/quick_travel/location.rb
quicktravel_client-3.8.1 lib/quick_travel/location.rb
quicktravel_client-3.8.0 lib/quick_travel/location.rb
quicktravel_client-3.7.0 lib/quick_travel/location.rb
quicktravel_client-3.6.1 lib/quick_travel/location.rb
quicktravel_client-3.6.0 lib/quick_travel/location.rb
quicktravel_client-3.5.0 lib/quick_travel/location.rb
quicktravel_client-3.4.0 lib/quick_travel/location.rb
quicktravel_client-3.3.0 lib/quick_travel/location.rb
quicktravel_client-3.2.0 lib/quick_travel/location.rb