Sha256: 9bb98bc2bad0790fab25db9a7abc993d9325a76d51cfa21836aa4e55e8117349
Contents?: true
Size: 375 Bytes
Versions: 37
Compression:
Stored size: 375 Bytes
Contents
require "active_resource" module Ddr::Models class Contact < ActiveResource::Base self.site = ENV["DDR_AUX_API_URL"] def self.call(slug) new get(:find, slug: slug) rescue ActiveResource::ResourceNotFound => e raise Ddr::Models::NotFoundError, e end def self.keys all.map(&:slug) end def to_s name end end end
Version data entries
37 entries across 37 versions & 1 rubygems