class Pantry::ClientRegistry::ClientRecord

Attributes

client[R]
last_checked_in_at[R]

Public Class Methods

new() click to toggle source
# File lib/pantry/client_registry.rb, line 88
def initialize
  @client = nil
  @last_checked_in_at = nil
end

Public Instance Methods

check_in(client) click to toggle source
# File lib/pantry/client_registry.rb, line 93
def check_in(client)
  @client = client
  @last_checked_in_at = Time.now
end
checked_in?() click to toggle source
# File lib/pantry/client_registry.rb, line 98
def checked_in?
  !@last_checked_in_at.nil?
end