Sha256: 3e276f18f51db0c7bcad8eefd62046bb5f0df98d67e91b6d4d1d93764a9df29c
Contents?: true
Size: 411 Bytes
Versions: 162
Compression:
Stored size: 411 Bytes
Contents
module Recurly class Resource class Errors < Hash def [] key super key.to_s end def []= key, value super key.to_s, value end def full_messages map { |attribute, messages| attribute_name = attribute.capitalize.gsub('_', ' ') messages.map { |message| "#{attribute_name} #{message}." } }.flatten end end end end
Version data entries
162 entries across 162 versions & 1 rubygems