Class: Firebased::Firebase

Inherits:
Object
  • Object
show all
Defined in:
lib/firebased/firebase.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, admin_token) ⇒ Firebase

Returns a new instance of Firebase.



10
11
12
13
14
# File 'lib/firebased/firebase.rb', line 10

def initialize(name, admin_token)
  @name        = name
  @admin_token = admin_token
  generate_reference!
end

Instance Attribute Details

#admin_tokenObject

Returns the value of attribute admin_token.



8
9
10
# File 'lib/firebased/firebase.rb', line 8

def admin_token
  @admin_token
end

#auth_tokensObject

Returns the value of attribute auth_tokens.



8
9
10
# File 'lib/firebased/firebase.rb', line 8

def auth_tokens
  @auth_tokens
end

#firebase_tokenObject

Returns the value of attribute firebase_token.



8
9
10
# File 'lib/firebased/firebase.rb', line 8

def firebase_token
  @firebase_token
end

#nameObject

Returns the value of attribute name.



8
9
10
# File 'lib/firebased/firebase.rb', line 8

def name
  @name
end

#personal_tokenObject

Returns the value of attribute personal_token.



8
9
10
# File 'lib/firebased/firebase.rb', line 8

def personal_token
  @personal_token
end