Module: SchemaOrg::Mixins::GameServer
Class Method Summary collapse
Instance Method Summary collapse
-
#game ⇒ Object
Video game which is played on this server.
-
#game=(value) ⇒ Object
Video game which is played on this server.
-
#players_online ⇒ Object
Number of players on the server.
-
#players_online=(value) ⇒ Object
Number of players on the server.
-
#server_status ⇒ Object
Status of a game server.
-
#server_status=(value) ⇒ Object
Status of a game server.
Methods included from Thing
#additional_type, #additional_type=, #alternate_name, #alternate_name=, #description, #description=, #disambiguating_description, #disambiguating_description=, #identifier, #identifier=, #image, #image=, #main_entity_of_page, #main_entity_of_page=, #name, #name=, #owner, #owner=, #potential_action, #potential_action=, #same_as, #same_as=, #subject_of, #subject_of=, #url, #url=
Class Method Details
.schema_property_definitions ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/schema_org/mixins/game_server.rb', line 11 def self.schema_property_definitions { game: { schema_name: "game", schema_url: "https://schema.org/game", comment_lines: ["Video game which is played on this server."].freeze, ranges: ["VideoGame"].freeze, external_ranges: [].freeze, inverse_of: "gameServer", superseded_by: nil, supersedes: nil }.freeze, players_online: { schema_name: "playersOnline", schema_url: "https://schema.org/playersOnline", comment_lines: ["Number of players on the server."].freeze, ranges: ["Integer"].freeze, external_ranges: [].freeze, inverse_of: nil, superseded_by: nil, supersedes: nil }.freeze, server_status: { schema_name: "serverStatus", schema_url: "https://schema.org/serverStatus", comment_lines: ["Status of a game server."].freeze, ranges: ["GameServerStatus"].freeze, external_ranges: [].freeze, inverse_of: nil, superseded_by: nil, supersedes: nil }.freeze }.freeze end |
Instance Method Details
#game ⇒ Object
Video game which is played on this server.
Inverse-property: gameServer.
48 49 50 |
# File 'lib/schema_org/mixins/game_server.rb', line 48 def game read_property(:game) end |
#game=(value) ⇒ Object
Video game which is played on this server.
Inverse-property: gameServer.
54 55 56 |
# File 'lib/schema_org/mixins/game_server.rb', line 54 def game=(value) write_property(:game, value) end |
#players_online ⇒ Object
Number of players on the server.
59 60 61 |
# File 'lib/schema_org/mixins/game_server.rb', line 59 def players_online read_property(:players_online) end |
#players_online=(value) ⇒ Object
Number of players on the server.
64 65 66 |
# File 'lib/schema_org/mixins/game_server.rb', line 64 def players_online=(value) write_property(:players_online, value) end |
#server_status ⇒ Object
Status of a game server.
69 70 71 |
# File 'lib/schema_org/mixins/game_server.rb', line 69 def server_status read_property(:server_status) end |
#server_status=(value) ⇒ Object
Status of a game server.
74 75 76 |
# File 'lib/schema_org/mixins/game_server.rb', line 74 def server_status=(value) write_property(:server_status, value) end |