class PactBroker::Client::Pacticipants2::List

def do_call

def do_call
  PactBroker::Client::CommandResult.new(true, result_message)
end

def environments_link

def environments_link
  index_resource._link!('pb:pacticipants')
end

def environments_resource

def environments_resource
  @environments_resource = environments_link.get!
end

def result_message

def result_message
  if json_output?
    environments_resource.response.raw_body
  else
    TextFormatter.call(environments_resource._embedded["pacticipants"])
  end
end