Class: Seedy::SimpleGraph
- Inherits:
-
AbstractGraph
- Object
- AbstractGraph
- Seedy::SimpleGraph
- Defined in:
- lib/seedy/graphs/simple_graph.rb
Constant Summary collapse
{ :teams => 1, :accounts => 20, :bugs => 60, :cases => 80, :contacts => 80, :opportunities => 40, :calls => 480, :leads => 80, :emails => 320, :email_addresses => 80 }
- @@buffer =
Seedy::DatabaseBuffer
Instance Method Summary collapse
-
#initialize(offset = nil) ⇒ SimpleGraph
constructor
Creates a new user record, and all the dependent records listed above.
Methods inherited from AbstractGraph
#add, #buffer, #create_accounts, #create_bugs, #create_calls, #create_cases, #create_contacts, #create_email_addresses, #create_emails, #create_leads, #create_opportunities, #create_teams, #create_user, #records, #select
Constructor Details
#initialize(offset = nil) ⇒ SimpleGraph
Creates a new user record, and all the dependent records listed above
19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/seedy/graphs/simple_graph.rb', line 19 def initialize(offset=nil) create_user(offset) create_teams create_accounts create_bugs create_contacts create_cases create_opportunities create_calls create_leads @@buffer.flush end |