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.



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

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

Instance Attribute Details

#outputObject (readonly)

Returns the value of attribute output.



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

def output
  @output
end

Instance Method Details

#linesObject



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

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

#to_sObject



22
23
24
# File 'lib/resources/postgres_session.rb', line 22

def to_s
  @desc
end