Class: OpenActive::Models::Schema::SportsEvent
- Inherits:
-
Event
- Object
- BaseModel
- JsonLdModel
- Thing
- Event
- OpenActive::Models::Schema::SportsEvent
- Defined in:
- lib/openactive/models/schema/sports_event.rb
Instance Attribute Summary collapse
- #away_team ⇒ OpenActive::Models::Schema::SportsTeam, OpenActive::Models::Schema::Person
- #competitor ⇒ OpenActive::Models::Schema::Person, OpenActive::Models::Schema::SportsTeam
- #home_team ⇒ OpenActive::Models::Schema::SportsTeam, OpenActive::Models::Schema::Person
- #type ⇒ String
Attributes inherited from Event
#about, #actor, #aggregate_rating, #attendee, #attendees, #audience, #composer, #contributor, #director, #door_time, #duration, #end_date, #event_status, #funder, #in_language, #is_accessible_for_free, #location, #maximum_attendee_capacity, #offers, #organizer, #performer, #performers, #previous_start_date, #recorded_in, #remaining_attendee_capacity, #review, #sponsor, #start_date, #sub_event, #sub_events, #super_event, #translator, #typical_age_range, #work_featured, #work_performed
Attributes inherited from Thing
#additional_type, #alternate_name, #description, #disambiguating_description, #identifier, #image, #main_entity_of_page, #name, #potential_action, #same_as, #subject_of, #url
Attributes inherited from JsonLdModel
Method Summary
Methods inherited from BaseModel
#assign_attributes, define_property, deserialize, #deserialize, deserialize_class, #initialize, #serialize, serialize, #set_property, #to_json
Methods included from Concerns::TypeChecker
Methods included from Concerns::JsonLdSerializable
Constructor Details
This class inherits a constructor from OpenActive::BaseModel
Instance Attribute Details
#away_team ⇒ OpenActive::Models::Schema::SportsTeam, OpenActive::Models::Schema::Person
24 25 26 |
# File 'lib/openactive/models/schema/sports_event.rb', line 24 def away_team @away_team end |
#competitor ⇒ OpenActive::Models::Schema::Person, OpenActive::Models::Schema::SportsTeam
18 19 20 |
# File 'lib/openactive/models/schema/sports_event.rb', line 18 def competitor @competitor end |
#home_team ⇒ OpenActive::Models::Schema::SportsTeam, OpenActive::Models::Schema::Person
12 13 14 |
# File 'lib/openactive/models/schema/sports_event.rb', line 12 def home_team @home_team end |
#type ⇒ String
7 8 9 |
# File 'lib/openactive/models/schema/sports_event.rb', line 7 def type "schema:SportsEvent" end |