Class: Dbwatcher::Storage::NullSession

Inherits:
Object
  • Object
show all
Defined in:
lib/dbwatcher/storage/null_session.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.instanceObject



6
7
8
# File 'lib/dbwatcher/storage/null_session.rb', line 6

def self.instance
  @instance ||= new
end

Instance Method Details

#changesObject



18
19
20
# File 'lib/dbwatcher/storage/null_session.rb', line 18

def changes
  []
end

#ended_atObject



26
27
28
# File 'lib/dbwatcher/storage/null_session.rb', line 26

def ended_at
  nil
end

#idObject



10
11
12
# File 'lib/dbwatcher/storage/null_session.rb', line 10

def id
  nil
end

#nameObject



14
15
16
# File 'lib/dbwatcher/storage/null_session.rb', line 14

def name
  "Unknown Session"
end

#nil?Boolean

Returns:

  • (Boolean)


34
35
36
# File 'lib/dbwatcher/storage/null_session.rb', line 34

def nil?
  true
end

#present?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/dbwatcher/storage/null_session.rb', line 30

def present?
  false
end

#started_atObject



22
23
24
# File 'lib/dbwatcher/storage/null_session.rb', line 22

def started_at
  nil
end