Class: W3cApi::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/w3c_api/client.rb

Instance Method Summary collapse

Instance Method Details

#affiliation(id, options = {}) ⇒ Object



147
148
149
# File 'lib/w3c_api/client.rb', line 147

def affiliation(id, options = {})
  Hal.instance.register.fetch(:affiliation_resource, id: id)
end

#affiliation_participants(id, options = {}) ⇒ Object



151
152
153
# File 'lib/w3c_api/client.rb', line 151

def affiliation_participants(id, options = {})
  Hal.instance.register.fetch(:affiliation_participants_index, id: id)
end

#affiliation_participations(id, options = {}) ⇒ Object



155
156
157
# File 'lib/w3c_api/client.rb', line 155

def affiliation_participations(id, options = {})
  Hal.instance.register.fetch(:affiliation_participations_index, id: id)
end

#affiliations(options = {}) ⇒ Object

Affiliation methods



143
144
145
# File 'lib/w3c_api/client.rb', line 143

def affiliations(options = {})
  Hal.instance.register.fetch(:affiliation_index)
end

#ecosystem(id, options = {}) ⇒ Object



165
166
167
# File 'lib/w3c_api/client.rb', line 165

def ecosystem(id, options = {})
  Hal.instance.register.fetch(:ecosystem_resource, id: id)
end

#ecosystem_evangelists(shortname, options = {}) ⇒ Object



173
174
175
# File 'lib/w3c_api/client.rb', line 173

def ecosystem_evangelists(shortname, options = {})
  Hal.instance.register.fetch(:ecosystem_evangelists_index, shortname: shortname)
end

#ecosystem_groups(shortname, options = {}) ⇒ Object



169
170
171
# File 'lib/w3c_api/client.rb', line 169

def ecosystem_groups(shortname, options = {})
  Hal.instance.register.fetch(:ecosystem_groups_index, shortname: shortname)
end

#ecosystem_member_organizations(shortname, options = {}) ⇒ Object



177
178
179
# File 'lib/w3c_api/client.rb', line 177

def ecosystem_member_organizations(shortname, options = {})
  Hal.instance.register.fetch(:ecosystem_member_organizations_index, shortname: shortname)
end

#ecosystems(options = {}) ⇒ Object

Ecosystem methods



161
162
163
# File 'lib/w3c_api/client.rb', line 161

def ecosystems(options = {})
  Hal.instance.register.fetch(:ecosystem_index)
end

#group(id, options = {}) ⇒ Object



68
69
70
# File 'lib/w3c_api/client.rb', line 68

def group(id, options = {})
  Hal.instance.register.fetch(:group_resource, id: id)
end

#group_chairs(id, options = {}) ⇒ Object



84
85
86
# File 'lib/w3c_api/client.rb', line 84

def group_chairs(id, options = {})
  Hal.instance.register.fetch(:group_chairs_index, id: id)
end

#group_charters(id, options = {}) ⇒ Object



80
81
82
# File 'lib/w3c_api/client.rb', line 80

def group_charters(id, options = {})
  Hal.instance.register.fetch(:group_charters_index, id: id)
end

#group_participations(id, options = {}) ⇒ Object



92
93
94
# File 'lib/w3c_api/client.rb', line 92

def group_participations(id, options = {})
  Hal.instance.register.fetch(:group_participations_index, id: id)
end

#group_specifications(id, options = {}) ⇒ Object



72
73
74
# File 'lib/w3c_api/client.rb', line 72

def group_specifications(id, options = {})
  Hal.instance.register.fetch(:group_specifications_index, id: id)
end

#group_team_contacts(id, options = {}) ⇒ Object



88
89
90
# File 'lib/w3c_api/client.rb', line 88

def group_team_contacts(id, options = {})
  Hal.instance.register.fetch(:group_team_contacts_index, id: id)
end

#group_users(id, options = {}) ⇒ Object



76
77
78
# File 'lib/w3c_api/client.rb', line 76

def group_users(id, options = {})
  Hal.instance.register.fetch(:group_users_index, id: id)
end

#groups(options = {}) ⇒ Object

Group methods



64
65
66
# File 'lib/w3c_api/client.rb', line 64

def groups(options = {})
  Hal.instance.register.fetch(:group_index)
end

#participation(id, options = {}) ⇒ Object

Participation methods



183
184
185
# File 'lib/w3c_api/client.rb', line 183

def participation(id, options = {})
  Hal.instance.register.fetch(:participation_resource, id: id)
end

#participation_participants(id, options = {}) ⇒ Object



187
188
189
# File 'lib/w3c_api/client.rb', line 187

def participation_participants(id, options = {})
  Hal.instance.register.fetch(:participation_participants_index, id: id)
end

#series(options = {}) ⇒ Object

Series methods



50
51
52
# File 'lib/w3c_api/client.rb', line 50

def series(options = {})
  Hal.instance.register.fetch(:serie_index)
end

#series_by_shortname(shortname, options = {}) ⇒ Object



54
55
56
# File 'lib/w3c_api/client.rb', line 54

def series_by_shortname(shortname, options = {})
  Hal.instance.register.fetch(:serie_resource, shortname: shortname)
end

#series_specifications(shortname, options = {}) ⇒ Object



58
59
60
# File 'lib/w3c_api/client.rb', line 58

def series_specifications(shortname, options = {})
  Hal.instance.register.fetch(:serie_specification_resource, shortname: shortname)
end

#specification(shortname, options = {}) ⇒ Object



14
15
16
# File 'lib/w3c_api/client.rb', line 14

def specification(shortname, options = {})
  Hal.instance.register.fetch(:specification_resource, shortname: shortname)
end

#specification_deliverers(shortname, options = {}) ⇒ Object



44
45
46
# File 'lib/w3c_api/client.rb', line 44

def specification_deliverers(shortname, options = {})
  Hal.instance.register.fetch(:specification_deliverers_index, shortname: shortname)
end

#specification_editors(shortname, options = {}) ⇒ Object

New methods for editors and deliverers



40
41
42
# File 'lib/w3c_api/client.rb', line 40

def specification_editors(shortname, options = {})
  Hal.instance.register.fetch(:specification_editors_index, shortname: shortname)
end

#specification_superseded_by(shortname, options = {}) ⇒ Object



34
35
36
# File 'lib/w3c_api/client.rb', line 34

def specification_superseded_by(shortname, options = {})
  Hal.instance.register.fetch(:specification_superseded_by_index, shortname: shortname)
end

#specification_supersedes(shortname, options = {}) ⇒ Object



30
31
32
# File 'lib/w3c_api/client.rb', line 30

def specification_supersedes(shortname, options = {})
  Hal.instance.register.fetch(:specification_supersedes_index, shortname: shortname)
end

#specification_version(shortname, version, options = {}) ⇒ Object



22
23
24
# File 'lib/w3c_api/client.rb', line 22

def specification_version(shortname, version, options = {})
  Hal.instance.register.fetch(:specification_resource_version_resource, shortname: shortname, version: version)
end

#specification_versions(shortname, options = {}) ⇒ Object



18
19
20
# File 'lib/w3c_api/client.rb', line 18

def specification_versions(shortname, options = {})
  Hal.instance.register.fetch(:specification_resource_version_index, shortname: shortname)
end

#specifications(options = {}) ⇒ Object



10
11
12
# File 'lib/w3c_api/client.rb', line 10

def specifications(options = {})
  Hal.instance.register.fetch(:specification_index)
end

#specifications_by_status(status, options = {}) ⇒ Object



26
27
28
# File 'lib/w3c_api/client.rb', line 26

def specifications_by_status(status, options = {})
  Hal.instance.register.fetch(:specification_by_status_index, status: status)
end

#translation(id, options = {}) ⇒ Object



137
138
139
# File 'lib/w3c_api/client.rb', line 137

def translation(id, options = {})
  Hal.instance.register.fetch(:translation_resource, id: id)
end

#translations(options = {}) ⇒ Object

Translation methods



133
134
135
# File 'lib/w3c_api/client.rb', line 133

def translations(options = {})
  Hal.instance.register.fetch(:translation_index)
end

#user(hash, options = {}) ⇒ Object

def users(options = {})

raise ArgumentError,
      'The W3C API does not support fetching all users. You must provide a specific user ID with the user method.'

end



103
104
105
# File 'lib/w3c_api/client.rb', line 103

def user(hash, options = {})
  Hal.instance.register.fetch(:user_resource, hash: hash)
end

#user_affiliations(hash, options = {}) ⇒ Object



111
112
113
# File 'lib/w3c_api/client.rb', line 111

def user_affiliations(hash, options = {})
  Hal.instance.register.fetch(:user_affiliations_index, hash: hash)
end

#user_chair_of_groups(hash, options = {}) ⇒ Object



119
120
121
# File 'lib/w3c_api/client.rb', line 119

def user_chair_of_groups(hash, options = {})
  Hal.instance.register.fetch(:user_chair_of_groups_index, hash: hash)
end

#user_groups(hash, options = {}) ⇒ Object



107
108
109
# File 'lib/w3c_api/client.rb', line 107

def user_groups(hash, options = {})
  Hal.instance.register.fetch(:user_groups_index, hash: hash)
end

#user_participations(hash, options = {}) ⇒ Object



115
116
117
# File 'lib/w3c_api/client.rb', line 115

def user_participations(hash, options = {})
  Hal.instance.register.fetch(:user_participations_index, hash: hash)
end

#user_specifications(hash, options = {}) ⇒ Object



127
128
129
# File 'lib/w3c_api/client.rb', line 127

def user_specifications(hash, options = {})
  Hal.instance.register.fetch(:user_specifications_index, hash: hash)
end

#user_team_contact_of_groups(hash, options = {}) ⇒ Object



123
124
125
# File 'lib/w3c_api/client.rb', line 123

def user_team_contact_of_groups(hash, options = {})
  Hal.instance.register.fetch(:user_team_contact_of_groups_index, hash: hash)
end