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.



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

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

Instance Attribute Details

#outputObject (readonly)

Returns the value of attribute output.



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

def output
  @output
end

Instance Method Details

#linesObject



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

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

#to_sObject



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

def to_s
  @desc
end