Module: Firebased::Configurable

Included in:
Firebased
Defined in:
lib/firebased/configurable.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#email=(value) ⇒ Object (writeonly)

Sets the attribute email

Parameters:

  • value

    the value to set the attribute email to.



3
4
5
# File 'lib/firebased/configurable.rb', line 3

def email=(value)
  @email = value
end

#password=(value) ⇒ Object (writeonly)

Sets the attribute password

Parameters:

  • value

    the value to set the attribute password to.



3
4
5
# File 'lib/firebased/configurable.rb', line 3

def password=(value)
  @password = value
end

Class Method Details

.keysObject



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

Yields:

  • (_self)

Yield Parameters:



12
13
14
15
# File 'lib/firebased/configurable.rb', line 12

def configure
  yield self
  self
end