Class: Dbwatcher::Storage::NullSession
- Inherits:
-
Object
- Object
- Dbwatcher::Storage::NullSession
- Defined in:
- lib/dbwatcher/storage/null_session.rb
Class Method Summary collapse
Instance Method Summary collapse
- #changes ⇒ Object
- #ended_at ⇒ Object
- #id ⇒ Object
- #name ⇒ Object
- #nil? ⇒ Boolean
- #present? ⇒ Boolean
- #started_at ⇒ Object
Class Method Details
.instance ⇒ Object
6 7 8 |
# File 'lib/dbwatcher/storage/null_session.rb', line 6 def self.instance @instance ||= new end |
Instance Method Details
#changes ⇒ Object
18 19 20 |
# File 'lib/dbwatcher/storage/null_session.rb', line 18 def changes [] end |
#ended_at ⇒ Object
26 27 28 |
# File 'lib/dbwatcher/storage/null_session.rb', line 26 def ended_at nil end |
#id ⇒ Object
10 11 12 |
# File 'lib/dbwatcher/storage/null_session.rb', line 10 def id nil end |
#name ⇒ Object
14 15 16 |
# File 'lib/dbwatcher/storage/null_session.rb', line 14 def name "Unknown Session" end |
#nil? ⇒ Boolean
34 35 36 |
# File 'lib/dbwatcher/storage/null_session.rb', line 34 def nil? true end |
#present? ⇒ Boolean
30 31 32 |
# File 'lib/dbwatcher/storage/null_session.rb', line 30 def present? false end |
#started_at ⇒ Object
22 23 24 |
# File 'lib/dbwatcher/storage/null_session.rb', line 22 def started_at nil end |