Completed
Pull Request — master (#367)
by
unknown
03:47
created

OrganizationsAccount.find_account()   A

Complexity

Conditions 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
c 1
b 0
f 1
dl 0
loc 4
rs 10
1
module Awspec::Helper
2
  module Finder
3
    module OrganizationsAccount
4
      def find_account(name)
5
        res = organizations_client.list_accounts
6
        res.accounts.find { |account| account.name == name }
7
      end
8
    end
9
  end
10
end
11