Class: TcUserTable

Inherits:
Rufus::Tokyo::Table
  • Object
show all
Defined in:
lib/models/rufus_tokyo_user.rb

Constant Summary collapse

@@path =
false

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTcUserTable

Returns a new instance of TcUserTable.



137
138
139
140
141
# File 'lib/models/rufus_tokyo_user.rb', line 137

def initialize
  #make this path configurable somehow
  raise "you need to define a path for the user cabinet to be stored at, like so: TcUserTable.cabinet_path = 'folder/where/you/wanna/store/your/database'" unless @@path
  super(@@path + '/users.tct')
end

Class Method Details

.cabinet_path=(path) ⇒ Object



143
144
145
# File 'lib/models/rufus_tokyo_user.rb', line 143

def self.cabinet_path=(path)
  @@path = path
end