Class: FakeGrandIdSimple::FakePerson

Inherits:
Person
  • Object
show all
Defined in:
lib/fake_grand_id_simple.rb

Instance Method Summary collapse

Instance Method Details

#nameObject



14
15
16
# File 'lib/fake_grand_id_simple.rb', line 14

def name
  "#{given_name} #{surname}"
end

#session_idObject



10
11
12
# File 'lib/fake_grand_id_simple.rb', line 10

def session_id
  @session_id ||= Digest::SHA256.hexdigest(rand.to_s)
end