Class: ListingsRequester

Inherits:
Object
  • Object
show all
Defined in:
app/requesters/listings_requester.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(request) ⇒ ListingsRequester

Returns a new instance of ListingsRequester


4
5
6
# File 'app/requesters/listings_requester.rb', line 4

def initialize(request)
  @request = request
end

Instance Attribute Details

#requestObject (readonly)

Returns the value of attribute request


2
3
4
# File 'app/requesters/listings_requester.rb', line 2

def request
  @request
end

Instance Method Details

#responseObject


8
9
10
# File 'app/requesters/listings_requester.rb', line 8

def response
  parse_request
end