Class: Ghub::Endpoints::Organizations::Members::Actions::Index
- Inherits:
-
Object
- Object
- Ghub::Endpoints::Organizations::Members::Actions::Index
- Includes:
- Pipeable
- Defined in:
- lib/ghub/endpoints/organizations/members/actions/index.rb
Overview
Handles an organization member index action.
Instance Method Summary collapse
Instance Method Details
#call(owner, **parameters) ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/ghub/endpoints/organizations/members/actions/index.rb', line 16 def call owner, **parameters pipe( "orgs/#{owner}/members", insert(parameters), to(api, :get), try(:parse, catch: JSON::ParserError), fmap { |body| {body:} }, validate(response, as: :to_h), as(:fetch, :body), map { |item| model.for(**item) } ) end |