Class: W3cApi::Commands::Participation
- Inherits:
-
Thor
- Object
- Thor
- W3cApi::Commands::Participation
- Includes:
- OutputFormatter, UserAgentOption
- Defined in:
- lib/w3c_api/commands/participation.rb
Overview
Thor CLI command for participation operations
Instance Method Summary collapse
Methods included from UserAgentOption
Methods included from OutputFormatter
Instance Method Details
#fetch ⇒ Object
19 20 21 22 23 |
# File 'lib/w3c_api/commands/participation.rb', line 19 def fetch client = W3cApi::Client.new participation = client.participation([:id]) output_results(participation, [:format]) end |
#participants ⇒ Object
29 30 31 32 33 |
# File 'lib/w3c_api/commands/participation.rb', line 29 def participants client = W3cApi::Client.new participants = client.participation_participants([:id]) output_results(participants, [:format]) end |