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.



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

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

Instance Attribute Details

#outputObject (readonly)

Returns the value of attribute output.



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

def output
  @output
end

Instance Method Details

#linesObject



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

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

#to_sObject



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

def to_s
  @desc
end