Sha256: 386a86fd82f0a90c4ea83275cbd5ce1861936adf16d1c3fda9b56fb7730a1204

Contents?: true

Size: 324 Bytes

Versions: 5

Compression:

Stored size: 324 Bytes

Contents

# encoding: utf-8
module BikePOA
  class Client
    def initialize
      @http_client    = HttpClient.new
      @map_parser     = MapParser.new
    end

    def stations
      map_page = @http_client.fetch
      @map_parser.parse(map_page).map do |station_data|
        Station.new(station_data)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bikepoa-tools-0.4.0 lib/bikepoa/client.rb
bikepoa-tools-0.3.1 lib/bikepoa/client.rb
bikepoa-tools-0.3.0 lib/bikepoa/client.rb
bikepoa-tools-0.2.0 lib/bikepoa/client.rb
bikepoa-tools-0.1.0 lib/bikepoa/client.rb