Module: Seedy
- Defined in:
- lib/seedy/random.rb,
lib/seedy/connection.rb,
lib/seedy/records/bugs.rb,
lib/seedy/records/calls.rb,
lib/seedy/records/cases.rb,
lib/seedy/records/leads.rb,
lib/seedy/records/teams.rb,
lib/seedy/records/users.rb,
lib/seedy/records/emails.rb,
lib/seedy/records/record.rb,
lib/seedy/generators/guid.rb,
lib/seedy/generators/name.rb,
lib/seedy/generators/user.rb,
lib/seedy/generators/money.rb,
lib/seedy/generators/phone.rb,
lib/seedy/generators/title.rb,
lib/seedy/records/accounts.rb,
lib/seedy/records/contacts.rb,
lib/seedy/generators/status.rb,
lib/seedy/generators/address.rb,
lib/seedy/generators/company.rb,
lib/seedy/generators/subject.rb,
lib/seedy/generators/website.rb,
lib/seedy/generators/customer.rb,
lib/seedy/generators/duration.rb,
lib/seedy/generators/industry.rb,
lib/seedy/generators/password.rb,
lib/seedy/generators/priority.rb,
lib/seedy/graphs/simple_graph.rb,
lib/seedy/generators/date_time.rb,
lib/seedy/generators/direction.rb,
lib/seedy/generators/ownership.rb,
lib/seedy/generators/department.rb,
lib/seedy/graphs/abstract_graph.rb,
lib/seedy/records/opportunities.rb,
lib/seedy/buffer/abstract_buffer.rb,
lib/seedy/buffer/database_buffer.rb,
lib/seedy/generators/description.rb,
lib/seedy/records/email_addresses.rb,
lib/seedy/generators/email_address.rb
Defined Under Namespace
Modules: Generators
Classes: AbstractBuffer, AbstractGraph, Accounts, Bugs, Calls, Cases, Contacts, DatabaseBuffer, EmailAddresses, Emails, Leads, Opportunities, Random, Record, SimpleGraph, Teams, Users
Constant Summary
collapse
- @@connection =
nil
Class Method Summary
collapse
Class Method Details
.connect(host, user, pass, db) ⇒ Object
Also known as:
connect!
9
10
11
|
# File 'lib/seedy/connection.rb', line 9
def self.connect(host, user, pass, db)
@@connection = Mysql.real_connect(host, user, pass, db)
end
|
.connection ⇒ Object
3
4
5
|
# File 'lib/seedy/connection.rb', line 3
def self.connection
@@connection
end
|
.connection=(connection) ⇒ Object
6
7
8
|
# File 'lib/seedy/connection.rb', line 6
def self.connection=(connection)
@@connection = connection
end
|