Class: W3cApi::Commands::SpecificationVersion

Inherits:
Thor
  • Object
show all
Includes:
OutputFormatter
Defined in:
lib/w3c_api/commands/specification_version.rb

Instance Method Summary collapse

Methods included from OutputFormatter

#output_results

Instance Method Details

#deliverersObject



36
37
38
39
40
41
42
43
44
# File 'lib/w3c_api/commands/specification_version.rb', line 36

def deliverers
  client = W3cApi::Client.new
  result = client.specification_version_deliverers(options[:shortname],
                                                   options[:version])
  output_results(result, options[:format])
rescue StandardError => e
  puts "Error: #{e.message}"
  exit 1
end

#editorsObject



18
19
20
21
22
23
24
25
26
# File 'lib/w3c_api/commands/specification_version.rb', line 18

def editors
  client = W3cApi::Client.new
  result = client.specification_version_editors(options[:shortname],
                                                options[:version])
  output_results(result, options[:format])
rescue StandardError => e
  puts "Error: #{e.message}"
  exit 1
end