Class: Zillow4r::Api::Base
- Inherits:
-
Base
- Object
- Base
- Zillow4r::Api::Base
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
included
Constructor Details
This class inherits a constructor from Zillow4r::Base
Class Method Details
.path ⇒ Object
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
11
12
13
|
# File 'lib/zillow4r/api.rb', line 11
def data_error?
response_code.nil? || response_code > 500
end
|
#error? ⇒ Boolean
15
16
17
|
# File 'lib/zillow4r/api.rb', line 15
def error?
response_code.nil? || response_code > 0
end
|