Class: W3cApi::Commands::Specification
- Inherits:
-
Thor
- Object
- Thor
- W3cApi::Commands::Specification
- Includes:
- OutputFormatter, UserAgentOption
- Defined in:
- lib/w3c_api/commands/specification.rb
Overview
Thor CLI command for specification operations
Instance Method Summary collapse
- #deliverers ⇒ Object
- #editors ⇒ Object
- #fetch ⇒ Object
- #superseded_by ⇒ Object
- #supersedes ⇒ Object
- #versions ⇒ Object
Methods included from UserAgentOption
Methods included from OutputFormatter
Instance Method Details
#deliverers ⇒ Object
84 85 86 87 88 |
# File 'lib/w3c_api/commands/specification.rb', line 84 def deliverers client = W3cApi::Client.new deliverers = client.specification_deliverers([:shortname]) output_results(deliverers, [:format]) end |
#editors ⇒ Object
73 74 75 76 77 |
# File 'lib/w3c_api/commands/specification.rb', line 73 def editors client = W3cApi::Client.new editors = client.specification_editors([:shortname]) output_results(editors, [:format]) end |
#fetch ⇒ Object
24 25 26 27 28 |
# File 'lib/w3c_api/commands/specification.rb', line 24 def fetch client = W3cApi::Client.new specifications = fetch_specifications(client) output_results(specifications, [:format]) end |
#superseded_by ⇒ Object
61 62 63 64 65 66 |
# File 'lib/w3c_api/commands/specification.rb', line 61 def superseded_by # We need to add client.specification_superseded_by method in the client client = W3cApi::Client.new specifications = client.specification_superseded_by([:shortname]) output_results(specifications, [:format]) end |
#supersedes ⇒ Object
48 49 50 51 52 53 |
# File 'lib/w3c_api/commands/specification.rb', line 48 def supersedes # We need to add client.specification_supersedes method in the client client = W3cApi::Client.new specifications = client.specification_supersedes([:shortname]) output_results(specifications, [:format]) end |