Sha256: 13c100bbc228619b9c8780ede80977ff91ed7f3ea7a43302a520f6a62e9073fe
Contents?: true
Size: 589 Bytes
Versions: 4
Compression:
Stored size: 589 Bytes
Contents
module Amazon module Associates class Response < ApiResult attr_reader :url def errors request.errors end def initialize(url) @url = url end def ==(other) (instance_variables.sort == other.instance_variables.sort) && instance_variables.all? do |v| instance_variable_get(v) == other.instance_variable_get(v) end end private def after_parse # these can't be done as blocks because we need @url available raise errors.first unless errors.empty? end end end end
Version data entries
4 entries across 4 versions & 1 rubygems