Module: Eld
- Defined in:
- lib/eld.rb,
lib/eld/cache.rb,
lib/eld/version.rb,
lib/eld/cache/redis.rb,
lib/eld/certificate.rb,
lib/eld/cache/memory.rb,
lib/eld/authenticator.rb
Defined Under Namespace
Modules: Cache
Classes: Authenticator, Certificate, Error
Constant Summary
collapse
- VERSION =
"0.2.0"
Class Method Summary
collapse
Class Method Details
.authenticate(token) ⇒ Object
43
44
45
|
# File 'lib/eld.rb', line 43
def authenticate(token)
authenticator.authenticate(token)
end
|
.authenticator ⇒ Object
25
26
27
28
29
|
# File 'lib/eld.rb', line 25
def authenticator
@authenticator ||= Eld::Authenticator.new(
firebase_id: firebase_id
)
end
|
.authenticator=(value) ⇒ Object
31
32
33
|
# File 'lib/eld.rb', line 31
def authenticator=(value)
@authenticator = value.new(firebase_id: firebase_id)
end
|
.cache ⇒ Object
35
36
37
|
# File 'lib/eld.rb', line 35
def cache
@cache ||= Eld::Cache::Memory.new
end
|
.cache=(value) ⇒ Object
39
40
41
|
# File 'lib/eld.rb', line 39
def cache=(value)
@cache = value
end
|
13
14
15
|
# File 'lib/eld.rb', line 13
def configure
yield(self)
end
|
.firebase_id ⇒ Object
17
18
19
|
# File 'lib/eld.rb', line 17
def firebase_id
@firebase_id
end
|
.firebase_id=(value) ⇒ Object
21
22
23
|
# File 'lib/eld.rb', line 21
def firebase_id=(value)
@firebase_id = value
end
|