Class: Pennyworth::CLI::Actions::GitHub::Organization

Inherits:
Sod::Action
  • Object
show all
Defined in:
lib/pennyworth/cli/actions/git_hub/organization.rb

Overview

Handles the GitHub user action.

Instance Method Summary collapse

Constructor Details

#initialize(processor: Processor.for_projects) ⇒ Organization

Returns a new instance of Organization.



19
20
21
22
# File 'lib/pennyworth/cli/actions/git_hub/organization.rb', line 19

def initialize(processor: Processor.for_projects, **)
  super(**)
  @processor = processor
end

Instance Method Details

#call(handle = default) ⇒ Object



24
# File 'lib/pennyworth/cli/actions/git_hub/organization.rb', line 24

def call(handle = default) = io.puts processor.call("orgs/#{handle}").to_json