Sha256: d1926bfa7f64cfe041c4a6dde8cbc869f9883af0727104af93c86c109075502b
Contents?: true
Size: 345 Bytes
Versions: 2
Compression:
Stored size: 345 Bytes
Contents
module Kosher class Algorithm def initialize(response) @response = response end def items @response.map('Item') do |item| Item.build(item) end end def errors @response.errors.map do |error| error['Message'].scan(/[0-9A-Z]{10}/).first rescue nil end.compact end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kosher-0.1.1 | lib/kosher/algorithm.rb |
kosher-0.1.0 | lib/kosher/algorithm.rb |