Class: Immobilienscout::ResponseParser
- Inherits:
-
Object
- Object
- Immobilienscout::ResponseParser
- Defined in:
- lib/immobilienscout/response_parser.rb
Defined Under Namespace
Classes: Message
Constant Summary collapse
- HTTP_OK =
%w[200 201].freeze
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(response) ⇒ ResponseParser
constructor
A new instance of ResponseParser.
Constructor Details
#initialize(response) ⇒ ResponseParser
Returns a new instance of ResponseParser.
9 10 11 12 13 |
# File 'lib/immobilienscout/response_parser.rb', line 9 def initialize(response) @response = response raise ArgumentError unless valid? end |