Class: Adminterface::Data::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/adminterface/data/base.rb

Direct Known Subclasses

Countries, TimeZones

Class Method Summary collapse

Class Method Details

.call(*args) ⇒ Object



4
5
6
7
8
# File 'lib/adminterface/data/base.rb', line 4

def self.call(*args)
  new(*args).call
rescue => e
  {error: e.class.to_s, message: e.message}
end