Class: OpenActive::Models::Schema::AggregateRating
- Inherits:
-
Rating
- Object
- BaseModel
- JsonLdModel
- Thing
- Intangible
- Rating
- OpenActive::Models::Schema::AggregateRating
- Defined in:
- lib/openactive/models/schema/aggregate_rating.rb
Direct Known Subclasses
Instance Attribute Summary collapse
- #item_reviewed ⇒ OpenActive::Models::Schema::Thing
- #rating_count ⇒ int?
- #review_count ⇒ int?
- #type ⇒ String
Attributes inherited from Rating
#author, #best_rating, #rating_explanation, #rating_value, #review_aspect, #worst_rating
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
#item_reviewed ⇒ OpenActive::Models::Schema::Thing
24 25 26 |
# File 'lib/openactive/models/schema/aggregate_rating.rb', line 24 def item_reviewed @item_reviewed end |
#rating_count ⇒ int?
12 13 14 |
# File 'lib/openactive/models/schema/aggregate_rating.rb', line 12 def @rating_count end |
#review_count ⇒ int?
18 19 20 |
# File 'lib/openactive/models/schema/aggregate_rating.rb', line 18 def review_count @review_count end |
#type ⇒ String
7 8 9 |
# File 'lib/openactive/models/schema/aggregate_rating.rb', line 7 def type "schema:AggregateRating" end |