Class: Ronin::DB::OrganizationCustomer

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Model
Defined in:
lib/ronin/db/organization_customer.rb

Overview

Represents a customer relationship of an Organization.

Since:

  • 0.2.0

Instance Attribute Summary collapse

Method Summary

Methods included from Model

included

Instance Attribute Details

#created_atTime (readonly)

Tracks when the customer relationship was first created

Returns:

  • (Time)


66
# File 'lib/ronin/db/organization_customer.rb', line 66

attribute :created_at, :datetime

#idInteger

Primary key of the customer relationship.

Returns:

  • (Integer)


40
# File 'lib/ronin/db/organization_customer.rb', line 40

attribute :id, :integer

#organizationOrganization?

The customer organization.

Returns:



52
# File 'lib/ronin/db/organization_customer.rb', line 52

belongs_to :customer_organization, class_name: 'Organization'

#personPerson?

The customer organization.

Returns:



59
# File 'lib/ronin/db/organization_customer.rb', line 59

belongs_to :customer, class_name: 'Person'

#vendorOrganization

The vendor company.

Returns:



46
# File 'lib/ronin/db/organization_customer.rb', line 46

belongs_to :vendor, class_name: 'Organization'