Class: Affiliation

Inherits:
Object
  • Object
show all
Defined in:
app/models/affiliation.rb

Overview

Ties Customers and service Providers together.

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Array<Booking>) bookings

Returns the Bookings associated with this Affiliation.

Returns:



13
14
15
# File 'app/models/affiliation.rb', line 13

def bookings
  @bookings
end

- (Customer) customer

Returns the Customer associated with this Affiliation.

Returns:



7
8
9
# File 'app/models/affiliation.rb', line 7

def customer
  @customer
end

- (Provider) provider

Returns the Provider associated with this Affiliation.

Returns:



4
5
6
# File 'app/models/affiliation.rb', line 4

def provider
  @provider
end

- (AffiliationState) state

Returns the state of the Affiliation.

Returns:



10
11
12
# File 'app/models/affiliation.rb', line 10

def state
  @state
end

Instance Method Details

- (Booking) book(slot)

Book the Slot for the Customer.

Parameters:

Returns:



20
21
# File 'app/models/affiliation.rb', line 20

def book slot
end