Sha256: 96707be41acd3b561efad46a7403aa50f4df465524d4cbda40ad12b337ffe037

Contents?: true

Size: 358 Bytes

Versions: 3

Compression:

Stored size: 358 Bytes

Contents

module Rentjuicer
  class Neighborhoods

    attr_accessor :client, :resource

    def initialize(client)
      self.client = client
      self.resource = "/neighborhoods.json"
    end

    def find_all(raise_error = false)
      Response.new(self.client.process_get(resource), raise_error)
    end

    def find_all!
      find_all(true)
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rentjuicer-0.10.1 lib/rentjuicer/neighborhoods.rb
rentjuicer-0.10.0 lib/rentjuicer/neighborhoods.rb
rentjuicer-0.9.0 lib/rentjuicer/neighborhoods.rb