Class: Inspec::Resources::Lines

Inherits:
Object
  • Object
show all
Defined in:
lib/resources/postgres_session.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw, desc) ⇒ Lines

Returns a new instance of Lines.



10
11
12
13
# File 'lib/resources/postgres_session.rb', line 10

def initialize(raw, desc)
  @output = raw
  @desc = desc
end

Instance Attribute Details

#outputObject (readonly)

Returns the value of attribute output.



8
9
10
# File 'lib/resources/postgres_session.rb', line 8

def output
  @output
end

Instance Method Details

#linesObject



15
16
17
# File 'lib/resources/postgres_session.rb', line 15

def lines
  output.split("\n")
end

#to_sObject



19
20
21
# File 'lib/resources/postgres_session.rb', line 19

def to_s
  @desc
end