Class: Ronin::DB::OrganizationCustomer
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Ronin::DB::OrganizationCustomer
- Includes:
- Model
- Defined in:
- lib/ronin/db/organization_customer.rb
Overview
Represents a customer relationship of an Organization.
Instance Attribute Summary collapse
-
#created_at ⇒ Time
readonly
Tracks when the customer relationship was first created.
-
#id ⇒ Integer
Primary key of the customer relationship.
-
#organization ⇒ Organization?
The customer organization.
-
#person ⇒ Person?
The customer organization.
-
#vendor ⇒ Organization
The vendor company.
Method Summary
Methods included from Model
Instance Attribute Details
#created_at ⇒ Time (readonly)
Tracks when the customer relationship was first created
66 |
# File 'lib/ronin/db/organization_customer.rb', line 66 attribute :created_at, :datetime |
#id ⇒ Integer
Primary key of the customer relationship.
40 |
# File 'lib/ronin/db/organization_customer.rb', line 40 attribute :id, :integer |
#organization ⇒ Organization?
The customer organization.
52 |
# File 'lib/ronin/db/organization_customer.rb', line 52 belongs_to :customer_organization, class_name: 'Organization' |
#person ⇒ Person?
The customer organization.
59 |
# File 'lib/ronin/db/organization_customer.rb', line 59 belongs_to :customer, class_name: 'Person' |
#vendor ⇒ Organization
The vendor company.
46 |
# File 'lib/ronin/db/organization_customer.rb', line 46 belongs_to :vendor, class_name: 'Organization' |