/
person.rb
39 lines (36 loc) · 1.6 KB
/
person.rb
1
2
3
4
5
6
7
8
9
10
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
module GiantBomb
class Person < Resource
has_resource 'person', :plural => 'people', :id => '3040'
# http://api.giantbomb.com/documentation/#person
@@fields = [
:aliases, # List of aliases the person is known by. A \n (newline) separates each alias.
:api_detail_url, # URL pointing to the person detail resource
:birth_date, # Date the person was born
:characters, # Characters related to the person
:companies, # Companies the person has worked with
:concepts, # Concepts related to the person
:country, # Country the person resides in
:date_added, # Date the person was added to Giant Bomb
:date_last_updated, # Date the person was last updated on Giant Bomb
:death_date, # Date the person died
:deck, # Brief summary of the person
:description, # Description of the person
:first_credited_game, # Game the person was first credited in
:franchises, # Franchises the person has worked on
:games, # Games the person has worked on
:gender, # Gender of the person. Available options are: Male, Female, Other
:hometown, # City or town the person resides in
:id, # Unique ID of the person
:image, # Main Image of the person
:locations, # Locations related to the person
:name, # Name of the person
:objects, # Objects related to the person
:people, # Other people related to the person
:platforms, # Platforms related to the person
:site_detail_url # URL pointing to the person on Giant Bomb
]
@@fields.each do |field|
attr_accessor field
end
end
end