Class: Zoopla::API
- Inherits:
-
Object
- Object
- Zoopla::API
- Defined in:
- lib/zoopla/api.rb
Overview
Abstract class that understands how to talk to the API
Direct Known Subclasses
Instance Method Summary collapse
-
#actual_location ⇒ Object
Holds standard output parameters for the call to the server, if any.
-
#initialize(api_key) ⇒ API
constructor
A new instance of API.
-
#reset! ⇒ Rentals, Sales
Resets all parameters except the API key.
Constructor Details
#initialize(api_key) ⇒ API
Returns a new instance of API.
6 7 8 9 |
# File 'lib/zoopla/api.rb', line 6 def initialize(api_key) @key = api_key reset! end |
Instance Method Details
#actual_location ⇒ Object
Holds standard output parameters for the call to the server, if any
20 21 22 23 |
# File 'lib/zoopla/api.rb', line 20 def actual_location return @actual_location if @actual_location fetch_data(@request) end |