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



28
29
30
31
32
33
34
35
# File 'lib/w3c_api/commands/specification_version.rb', line 28

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



15
16
17
18
19
20
21
22
# File 'lib/w3c_api/commands/specification_version.rb', line 15

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