Module: Firebased::Configurable
- Included in:
- Firebased
- Defined in:
- lib/firebased/configurable.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
writeonly
Sets the attribute email.
-
#password ⇒ Object
writeonly
Sets the attribute password.
Class Method Summary collapse
Instance Method Summary collapse
-
#configure {|_self| ... } ⇒ Object
Allow block configuration.
Instance Attribute Details
#email=(value) ⇒ Object (writeonly)
Sets the attribute email
3 4 5 |
# File 'lib/firebased/configurable.rb', line 3 def email=(value) @email = value end |
#password=(value) ⇒ Object (writeonly)
Sets the attribute password
3 4 5 |
# File 'lib/firebased/configurable.rb', line 3 def password=(value) @password = value end |
Class Method Details
.keys ⇒ Object
6 7 8 |
# File 'lib/firebased/configurable.rb', line 6 def keys @keys ||= [:email, :password, :token] end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
Allow block configuration
12 13 14 15 |
# File 'lib/firebased/configurable.rb', line 12 def configure yield self self end |