Class: W3cApi::Client
- Inherits:
-
Object
- Object
- W3cApi::Client
- Defined in:
- lib/w3c_api/client.rb
Instance Method Summary collapse
- #affiliation(id, options = {}) ⇒ Object
-
#affiliations(options = {}) ⇒ Object
Affiliation methods.
- #ecosystem(shortname, options = {}) ⇒ Object
-
#ecosystems(options = {}) ⇒ Object
Ecosystem methods.
- #group(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_current_specification(shortname, options = {}) ⇒ Object
- #series_specifications(shortname, options = {}) ⇒ Object
- #specification(shortname, options = {}) ⇒ Object
- #specification_version(shortname, version, options = {}) ⇒ Object
- #specification_version_deliverers(shortname, version, options = {}) ⇒ Object
- #specification_version_editors(shortname, version, options = {}) ⇒ Object
- #specification_versions(shortname, options = {}) ⇒ Object
-
#specifications(options = nil) ⇒ Object
Specification methods.
- #specifications_by_status(status, options = {}) ⇒ Object
- #translation(id, options = {}) ⇒ Object
-
#translations(options = {}) ⇒ Object
Translation methods.
-
#user(hash, options = {}) ⇒ Object
User methods.
Instance Method Details
#affiliation(id, options = {}) ⇒ Object
114 115 116 |
# File 'lib/w3c_api/client.rb', line 114 def affiliation(id, = {}) fetch_resource(:affiliation_resource, id: id, **) end |
#affiliations(options = {}) ⇒ Object
Affiliation methods
110 111 112 |
# File 'lib/w3c_api/client.rb', line 110 def affiliations( = {}) fetch_resource(:affiliation_index, **) end |
#ecosystem(shortname, options = {}) ⇒ Object
129 130 131 |
# File 'lib/w3c_api/client.rb', line 129 def ecosystem(shortname, = {}) fetch_resource(:ecosystem_resource, shortname: shortname, **) end |
#ecosystems(options = {}) ⇒ Object
Ecosystem methods
125 126 127 |
# File 'lib/w3c_api/client.rb', line 125 def ecosystems( = {}) fetch_resource(:ecosystem_index, **) end |
#group(id, options = {}) ⇒ Object
78 79 80 |
# File 'lib/w3c_api/client.rb', line 78 def group(id, = {}) fetch_resource(:group_resource, id: id, **) end |
#groups(options = {}) ⇒ Object
Group methods
74 75 76 |
# File 'lib/w3c_api/client.rb', line 74 def groups( = {}) fetch_resource(:group_index, **) end |
#participation(id, options = {}) ⇒ Object
Participation methods
141 142 143 |
# File 'lib/w3c_api/client.rb', line 141 def participation(id, = {}) fetch_resource(:participation_resource, id: id, **) end |
#participation_participants(id, options = {}) ⇒ Object
145 146 147 |
# File 'lib/w3c_api/client.rb', line 145 def participation_participants(id, = {}) fetch_resource(:participation_participants_index, id: id, **) end |
#series(options = {}) ⇒ Object
Series methods
55 56 57 |
# File 'lib/w3c_api/client.rb', line 55 def series( = {}) fetch_resource(:serie_index, **) end |
#series_by_shortname(shortname, options = {}) ⇒ Object
59 60 61 |
# File 'lib/w3c_api/client.rb', line 59 def series_by_shortname(shortname, = {}) fetch_resource(:serie_resource, shortname: shortname, **) end |
#series_current_specification(shortname, options = {}) ⇒ Object
68 69 70 71 |
# File 'lib/w3c_api/client.rb', line 68 def series_current_specification(shortname, = {}) fetch_resource(:serie_current_specification_resource, shortname: shortname, **) end |
#series_specifications(shortname, options = {}) ⇒ Object
63 64 65 66 |
# File 'lib/w3c_api/client.rb', line 63 def series_specifications(shortname, = {}) fetch_resource(:serie_specification_resource, shortname: shortname, **) end |
#specification(shortname, options = {}) ⇒ Object
15 16 17 |
# File 'lib/w3c_api/client.rb', line 15 def specification(shortname, = {}) fetch_resource(:specification_resource, shortname: shortname, **) end |
#specification_version(shortname, version, options = {}) ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'lib/w3c_api/client.rb', line 24 def specification_version(shortname, version, = {}) fetch_resource( :specification_resource_version_resource, shortname: shortname, version: version, ** ) end |
#specification_version_deliverers(shortname, version, options = {}) ⇒ Object
49 50 51 52 |
# File 'lib/w3c_api/client.rb', line 49 def specification_version_deliverers(shortname, version, = {}) fetch_resource(:specification_version_deliverers_index, shortname: shortname, version: version, **) end |
#specification_version_editors(shortname, version, options = {}) ⇒ Object
44 45 46 47 |
# File 'lib/w3c_api/client.rb', line 44 def specification_version_editors(shortname, version, = {}) fetch_resource(:specification_version_editors_index, shortname: shortname, version: version, **) end |
#specification_versions(shortname, options = {}) ⇒ Object
19 20 21 22 |
# File 'lib/w3c_api/client.rb', line 19 def specification_versions(shortname, = {}) fetch_resource(:specification_resource_version_index, shortname: shortname, **) end |
#specifications(options = nil) ⇒ Object
Specification methods
11 12 13 |
# File 'lib/w3c_api/client.rb', line 11 def specifications( = nil) fetch_resource(:specification_index, **( || {})) end |
#specifications_by_status(status, options = {}) ⇒ Object
33 34 35 |
# File 'lib/w3c_api/client.rb', line 33 def specifications_by_status(status, = {}) fetch_resource(:specification_by_status_index, status: status, **) end |
#translation(id, options = {}) ⇒ Object
105 106 107 |
# File 'lib/w3c_api/client.rb', line 105 def translation(id, = {}) fetch_resource(:translation_resource, id: id, **) end |
#translations(options = {}) ⇒ Object
Translation methods
101 102 103 |
# File 'lib/w3c_api/client.rb', line 101 def translations( = {}) fetch_resource(:translation_index, **) end |
#user(hash, options = {}) ⇒ Object
User methods
89 90 91 |
# File 'lib/w3c_api/client.rb', line 89 def user(hash, = {}) fetch_resource(:user_resource, hash: hash, **) end |