Completed
Push — master ( fde2ba...d387dd )
by Fike
01:07
created

PrivateKey   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
dl 0
loc 13
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A to_s() 0 3 1
A initialize() 0 4 1
1
# frozen_string_literal: true
2
3
# rubocop:disable Style/Documentation
4
5
module AMA
6
  module Chef
7
    module SSHPrivateKeys
8
      module Model
9
        class PrivateKey
10
          attr_accessor :content
11
          attr_accessor :passphrase
12
13
          def initialize(content = nil, passphrase = nil)
14
            @content = content
15
            @passphrase = passphrase
16
          end
17
18
          def to_s
19
            @content
20
          end
21
        end
22
      end
23
    end
24
  end
25
end
26