budosystems.models.style.Studio

class Studio

Bases: Contactable, BasicInfo

Represents the business location(s) where the classes are.

property styles: Set[Style]

Styles taught at the studio. (Read-only)

add_style(style: Style, reciprocate: bool = True) None

Add a style to this studio.

Parameters:
  • style – The style to add.

  • reciprocate – Whether to reciprocate the operation on style.

remove_style(style: Style, reciprocate: bool = True) None

Remove a style to this studio.

Parameters:
  • style – The style to remove.

  • reciprocate – Whether to reciprocate the operation on style.

property businesses: Set[Business]

Businesses co-located at this studio. (Read-only)

add_business(business: Business, reciprocate: bool = True) None

Add a style to this studio.

Parameters:
  • business – The business to add.

  • reciprocate – Whether to reciprocate the operation on business.

remove_business(business: Business, reciprocate: bool = True) None

Remove a style to this business.

Parameters:
  • business – The business to remove.

  • reciprocate – Whether to reciprocate the operation on business.

__init__(*, entity_id: UUID = <singleton MissingUUID>, name: str, slug: str, description: str = '', id_name: str = _Nothing.NOTHING, phone_numbers: ContactList[PhoneNumber] = _Nothing.NOTHING, email_addresses: ContactList[EmailAddress] = _Nothing.NOTHING, physical_addresses: ContactList[PhysicalAddress] = _Nothing.NOTHING) None

Method generated by attrs for class Studio.

phone_numbers: ContactList[PhoneNumber]
email_addresses: ContactList[EmailAddress]
physical_addresses: ContactList[PhysicalAddress]
id_name: str

This redefinition of the Entity.id_name field changes the default factory to point to the slug field.

entity_id: UUID

(Optional) The unique identifier for an instance of Entity (and all its subclasses)