Class: Surveygizmo::Response::ParseSurveygizmoResponse

Inherits:
Faraday::Response::Middleware
  • Object
show all
Defined in:
lib/surveygizmo/response/parse_surveygizmo_response.rb

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.response_classObject

Returns the value of attribute response_class



7
8
9
# File 'lib/surveygizmo/response/parse_surveygizmo_response.rb', line 7

def response_class
  @response_class
end

Instance Method Details

#parse(body) ⇒ Object



12
13
14
# File 'lib/surveygizmo/response/parse_surveygizmo_response.rb', line 12

def parse(body)
  self.class.response_class.new(body)
end