Sha256: e12c4ec26265aea2b8de83dc85bf793c6f01ff4dae8dc223c5066109fafd7f8f

Contents?: true

Size: 414 Bytes

Versions: 4

Compression:

Stored size: 414 Bytes

Contents

module JeraPush::Services
  class BaseService
    extend ActiveModel::Naming

    def initialize(*)
      @errors = ActiveModel::Errors.new(self)
      @firebase = JeraPush::Firebase::Client.new
    end

    def read_attribute_for_validation(attr)
      send(attr)
    end
  
    def self.human_attribute_name(attr, options = {})
      attr
    end
  
    def self.lookup_ancestors
      [self]
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jera_push-2.1.4 lib/jera_push/services/base_service.rb
jera_push-2.1.3 lib/jera_push/services/base_service.rb
jera_push-2.1.2 lib/jera_push/services/base_service.rb
jera_push-2.0.0 lib/jera_push/services/base_service.rb