Module: RealPush::API::BaseList
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/realpush/api/base_list.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/realpush/api/base_list.rb', line 6 def self.included(base) base.class_eval do def list content = execute :get, url("#{self.class.params[:base_path]}.json") parse_content content rescue RealPush::HTTPError => e { status: :ERROR, message: e. } end end end |