Class: W3cApi::Client
- Inherits:
-
Object
- Object
- W3cApi::Client
- Defined in:
- lib/w3c_api/client.rb
Instance Method Summary collapse
- #affiliation(id, options = {}) ⇒ Object
- #affiliation_participants(id, options = {}) ⇒ Object
- #affiliation_participations(id, options = {}) ⇒ Object
-
#affiliations(options = {}) ⇒ Object
Affiliation methods.
- #ecosystem(id, options = {}) ⇒ Object
- #ecosystem_evangelists(shortname, options = {}) ⇒ Object
- #ecosystem_groups(shortname, options = {}) ⇒ Object
- #ecosystem_member_organizations(shortname, options = {}) ⇒ Object
-
#ecosystems(options = {}) ⇒ Object
Ecosystem methods.
- #group(id, options = {}) ⇒ Object
- #group_chairs(id, options = {}) ⇒ Object
- #group_charters(id, options = {}) ⇒ Object
- #group_participations(id, options = {}) ⇒ Object
- #group_specifications(id, options = {}) ⇒ Object
- #group_team_contacts(id, options = {}) ⇒ Object
- #group_users(id, options = {}) ⇒ Object
-
#groups(options = {}) ⇒ Object
Group methods.
-
#participation(id, options = {}) ⇒ Object
Participation methods.
- #participation_participants(id, options = {}) ⇒ Object
-
#series(options = {}) ⇒ Object
Series methods.
- #series_by_shortname(shortname, options = {}) ⇒ Object
- #series_specifications(shortname, options = {}) ⇒ Object
- #specification(shortname, options = {}) ⇒ Object
- #specification_deliverers(shortname, options = {}) ⇒ Object
-
#specification_editors(shortname, options = {}) ⇒ Object
New methods for editors and deliverers.
- #specification_superseded_by(shortname, options = {}) ⇒ Object
- #specification_supersedes(shortname, options = {}) ⇒ Object
- #specification_version(shortname, version, options = {}) ⇒ Object
- #specification_versions(shortname, options = {}) ⇒ Object
- #specifications(options = {}) ⇒ Object
- #specifications_by_status(status, options = {}) ⇒ Object
- #translation(id, options = {}) ⇒ Object
-
#translations(options = {}) ⇒ Object
Translation methods.
-
#user(hash, options = {}) ⇒ Object
def users(options = {}) raise ArgumentError, ‘The W3C API does not support fetching all users.
- #user_affiliations(hash, options = {}) ⇒ Object
- #user_chair_of_groups(hash, options = {}) ⇒ Object
- #user_groups(hash, options = {}) ⇒ Object
- #user_participations(hash, options = {}) ⇒ Object
- #user_specifications(hash, options = {}) ⇒ Object
- #user_team_contact_of_groups(hash, options = {}) ⇒ Object
Instance Method Details
#affiliation(id, options = {}) ⇒ Object
147 148 149 |
# File 'lib/w3c_api/client.rb', line 147 def affiliation(id, = {}) 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, = {}) 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, = {}) 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( = {}) 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, = {}) 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, = {}) 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, = {}) 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, = {}) 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( = {}) 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, = {}) 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, = {}) 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, = {}) 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, = {}) 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, = {}) 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, = {}) 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, = {}) 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( = {}) 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, = {}) 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, = {}) 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( = {}) 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, = {}) 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, = {}) 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, = {}) 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, = {}) 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, = {}) 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, = {}) 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, = {}) 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, = {}) 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, = {}) 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( = {}) 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, = {}) 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, = {}) 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( = {}) 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, = {}) 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, = {}) 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, = {}) 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, = {}) 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, = {}) 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, = {}) 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, = {}) Hal.instance.register.fetch(:user_team_contact_of_groups_index, hash: hash) end |