nitc :: StarRating
Each rating can consider only one dimension
of the mentity.
Dimensions are arbitrary strings used to group ratings.
nitc :: StarRating :: _dimension
The dimension rated (arbritrary key)nitc :: StarRating :: _rating
The rating (traditionally a score between 0 and 5)nitc :: StarRating :: _user
The user login that made that rating (or null if anon)nitc :: StarRating :: defaultinit
nitc :: StarRating :: dimension=
The dimension rated (arbritrary key)nitc :: StarRating :: rating=
The rating (traditionally a score between 0 and 5)nitc :: StarRating :: timestamp=
Timestamp when this rating was creatednitc :: StarRating :: user
The user login that made that rating (or null if anon)nitc :: StarRating :: user=
The user login that made that rating (or null if anon)nitc $ StarRating :: SELF
Type of this instance, automatically specialized in every classnitc $ StarRating :: core_serialize_to
Actual serialization ofself
to serializer
nitc $ StarRating :: from_deserializer
Create an instance of this class from thedeserializer
nitc :: StarRating :: _dimension
The dimension rated (arbritrary key)nitc :: StarRating :: _rating
The rating (traditionally a score between 0 and 5)nitc :: StarRating :: _user
The user login that made that rating (or null if anon)serialization :: Serializable :: accept_inspect_serializer_core
serialization :: Serializable :: accept_json_serializer
Refinable service to customize the serialization of this class to JSONserialization :: Serializable :: accept_msgpack_attribute_counter
Hook to customize the behavior of theAttributeCounter
serialization :: Serializable :: accept_msgpack_serializer
Hook to customize the serialization of this class to MessagePackserialization :: Serializable :: add_to_bundle
Called by[]=
to dynamically choose the appropriate method according
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
serialization :: Serializable :: core_serialize_to
Actual serialization ofself
to serializer
nitc :: StarRating :: defaultinit
core :: Object :: defaultinit
popcorn :: RepoObject :: defaultinit
nitc :: StarRating :: dimension=
The dimension rated (arbritrary key)serialization :: Serializable :: from_deserializer
Create an instance of this class from thedeserializer
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
serialization :: Serializable :: msgpack_extra_array_items
Hook to request a larger than usual metadata arraycore :: Object :: native_class_name
The class name of the object in CString format.core :: Object :: output_class_name
Display class name on stdout (debug only).nitc :: StarRating :: rating=
The rating (traditionally a score between 0 and 5)serialization :: Serializable :: serialize_msgpack
Serializeself
to MessagePack bytes
serialization :: Serializable :: serialize_to
Serializeself
to serializer
serialization :: Serializable :: serialize_to_json
Serializeself
to JSON
serialization :: Serializable :: serialize_to_or_delay
Accept references or force direct serialization (usingserialize_to
)
nitc :: StarRating :: timestamp=
Timestamp when this rating was createdserialization :: Serializable :: to_pretty_json
Serializeself
to plain pretty JSON
nitc :: StarRating :: user
The user login that made that rating (or null if anon)nitc :: StarRating :: user=
The user login that made that rating (or null if anon)Serializer::serialize
# Star ratings allow users to rate mentities with a 5-stars system.
#
# Each rating can consider only one `dimension` of the mentity.
# Dimensions are arbitrary strings used to group ratings.
class StarRating
super RepoObject
serialize
# The user login that made that rating (or null if anon)
var user: nullable String
# Rated `MEntity::full_name`
var mentity: String
# The dimension rated (arbritrary key)
var dimension: nullable String
# The rating (traditionally a score between 0 and 5)
var rating: Int is writable
# Timestamp when this rating was created
var timestamp = 0 is writable
end
src/doc/api/api_feedback.nit:173,1--195,3