Sha256: bda35b1a7e2a7699bed7c3848556a17825d249fbb59de053f652c7b389668274

Contents?: true

Size: 931 Bytes

Versions: 9

Compression:

Stored size: 931 Bytes

Contents

require File.expand_path('firebase-admin/error', __dir__)
require File.expand_path('firebase-admin/configuration', __dir__)
require File.expand_path('firebase-admin/api', __dir__)
require File.expand_path('firebase-admin/client', __dir__)

module FirebaseAdmin
  extend Configuration

  # Alias for FirebaseAdmin::Client.new
  #
  # @return [FirebaseAdmin::Client]
  def self.client(options = {})
    FirebaseAdmin::Client.new(options)
  end

  # Delegate to FirebaseAdmin::Client
  def self.method_missing(method, *args, &block)
    return super unless client.respond_to?(method)

    client.send(method, *args, &block)
  end

  # Delegate to FirebaseAdmin::Client
  def self.respond_to_missing?(method, include_all)
    client.respond_to_missing?(method, include_all) || super
  end

  # Delegate to FirebaseAdmin::Client
  def self.respond_to?(method, include_all)
    client.respond_to?(method, include_all) || super
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
firebase-admin-0.3.0 lib/firebase-admin.rb
firebase-admin-0.2.0 lib/firebase-admin.rb
firebase-admin-0.1.6 lib/firebase-admin.rb
firebase-admin-0.1.5 lib/firebase-admin.rb
firebase-admin-0.1.4 lib/firebase-admin.rb
firebase-admin-0.1.3 lib/firebase-admin.rb
firebase-admin-0.1.2 lib/firebase-admin.rb
firebase-admin-0.1.1 lib/firebase-admin.rb
firebase-admin-0.1.0 lib/firebase-admin.rb