Class: W3cApi::Commands::Ecosystem
- Inherits:
-
Thor
- Object
- Thor
- W3cApi::Commands::Ecosystem
- Includes:
- OutputFormatter
- Defined in:
- lib/w3c_api/commands/ecosystem.rb
Overview
Thor CLI command for ecosystem operations
Instance Method Summary collapse
Methods included from OutputFormatter
Instance Method Details
#evangelists ⇒ Object
41 42 43 44 45 |
# File 'lib/w3c_api/commands/ecosystem.rb', line 41 def evangelists client = W3cApi::Client.new evangelists = client.ecosystem_evangelists([:shortname]) output_results(evangelists, [:format]) end |
#fetch ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/w3c_api/commands/ecosystem.rb', line 16 def fetch client = W3cApi::Client.new ecosystems = if [:shortname] # Single ecosystem client.ecosystem([:shortname]) else client.ecosystems end output_results(ecosystems, [:format]) end |