Class: Zillow4r::Api::Base

Inherits:
Base
  • Object
show all
Defined in:
lib/zillow4r/api.rb

Instance Attribute Summary

Attributes inherited from Base

#data

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#initialize

Methods included from XmlSearchHelper

included

Constructor Details

This class inherits a constructor from Zillow4r::Base

Class Method Details

.pathObject



4
5
6
# File 'lib/zillow4r/api.rb', line 4

def self.path
  raise "Need to set path for child class"
end

Instance Method Details

#data_error?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/zillow4r/api.rb', line 11

def data_error?
  response_code.nil? || response_code > 500
end

#error?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/zillow4r/api.rb', line 15

def error?
  response_code.nil? || response_code > 0
end