Class: W3cApi::Commands::Participation
- Inherits:
-
Thor
- Object
- Thor
- W3cApi::Commands::Participation
- Includes:
- OutputFormatter
- Defined in:
- lib/w3c_api/commands/participation.rb
Overview
Thor CLI command for participation operations
Instance Method Summary collapse
Methods included from OutputFormatter
Instance Method Details
#fetch ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/w3c_api/commands/participation.rb', line 16 def fetch client = W3cApi::Client.new participation = client.participation([:id]) # Wrap in a collection for consistent output participations = Models::Participations.new(participations: [participation]) output_results(participations, [:format]) end |