lib/chargify2/representations/call.rb in chargify2-0.2.2 vs lib/chargify2/representations/call.rb in chargify2-0.2.4

- old
+ new

@@ -7,24 +7,24 @@ property :success property :request property :response def request - Request.new(self[:request] || {}) + Request[self[:request] || {}] end def response - Response.new(self[:response] || {}) + Response[self[:response] || {}] end def successful? response.result.status_code.to_s == '200' end def errors - (response.result.errors || []).map {|e| OpenCascade.new(e.symbolize_keys)} + (response.result.errors || []).map {|e| Hashery::OpenCascade[e.symbolize_keys]} end - class Request < OpenCascade; end - class Response < OpenCascade; end + class Request < Hashery::OpenCascade; end + class Response < Hashery::OpenCascade; end end -end \ No newline at end of file +end