Module: KB::Listable::ClassMethods
- Defined in:
- lib/kb/models/concerns/listable.rb
Instance Method Summary collapse
Instance Method Details
#all(filters = {}) ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/kb/models/concerns/listable.rb', line 10 def all(filters = {}) kb_client.all(filters).map do |pet_parent| from_api pet_parent end rescue Faraday::ConnectionFailed => e raise e rescue Faraday::Error => e raise KB::Error.from_faraday(e) end |