Sha256: 58172242131a471d94c0d577d8d0c5817c103670fcc47ad904bdf8074885005f

Contents?: true

Size: 257 Bytes

Versions: 23

Compression:

Stored size: 257 Bytes

Contents

class CityGrid
  module Abstraction
    class Collection < SuperArray
      include Requestable

      def self.new opts = {}
        self[].request_and_update opts
      end

      def update array
        replace array if array
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
citygrid_api-0.0.28 lib/citygrid/abstraction/collection.rb
citygrid_api-0.0.27 lib/citygrid/abstraction/collection.rb
citygrid_api-0.0.26 lib/citygrid/abstraction/collection.rb
citygrid_api-0.0.25 lib/citygrid/abstraction/collection.rb
citygrid_api-0.0.24 lib/citygrid/abstraction/collection.rb
citygrid_api-0.0.23 lib/citygrid/abstraction/collection.rb
citygrid_api-0.0.22 lib/citygrid/abstraction/collection.rb
citygrid_api-0.0.21 lib/citygrid/abstraction/collection.rb
citygrid_api-0.0.20 lib/citygrid/abstraction/collection.rb
citygrid_api-0.0.19 lib/citygrid/abstraction/collection.rb
citygrid_api-0.0.18 lib/citygrid/abstraction/collection.rb
citygrid_api-0.0.17 lib/citygrid/abstraction/collection.rb
citygrid_api-0.0.16 lib/citygrid/abstraction/collection.rb
citygrid_api-0.0.15 lib/citygrid/abstraction/collection.rb
citygrid_api-0.0.14 lib/citygrid/abstraction/collection.rb
citygrid_api-0.0.13 lib/citygrid/abstraction/collection.rb
citygrid_api-0.0.12 lib/citygrid/abstraction/collection.rb
citygrid_api-0.0.11 lib/citygrid/abstraction/collection.rb
citygrid_api-0.0.10 lib/citygrid/abstraction/collection.rb
citygrid_api-0.0.9 lib/citygrid/abstraction/collection.rb