Class: Firebased::Firebase
- Inherits:
-
Object
- Object
- Firebased::Firebase
- Defined in:
- lib/firebased/firebase.rb
Instance Attribute Summary collapse
-
#admin_token ⇒ Object
Returns the value of attribute admin_token.
-
#auth_tokens ⇒ Object
Returns the value of attribute auth_tokens.
-
#firebase_token ⇒ Object
Returns the value of attribute firebase_token.
-
#name ⇒ Object
Returns the value of attribute name.
-
#personal_token ⇒ Object
Returns the value of attribute personal_token.
Instance Method Summary collapse
-
#initialize(name, admin_token) ⇒ Firebase
constructor
A new instance of Firebase.
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_token ⇒ Object
Returns the value of attribute admin_token.
8 9 10 |
# File 'lib/firebased/firebase.rb', line 8 def admin_token @admin_token end |
#auth_tokens ⇒ Object
Returns the value of attribute auth_tokens.
8 9 10 |
# File 'lib/firebased/firebase.rb', line 8 def auth_tokens @auth_tokens end |
#firebase_token ⇒ Object
Returns the value of attribute firebase_token.
8 9 10 |
# File 'lib/firebased/firebase.rb', line 8 def firebase_token @firebase_token end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/firebased/firebase.rb', line 8 def name @name end |
#personal_token ⇒ Object
Returns the value of attribute personal_token.
8 9 10 |
# File 'lib/firebased/firebase.rb', line 8 def personal_token @personal_token end |