Class: Google::Apis::ComposerV1::Line

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/composer_v1/classes.rb,
lib/google/apis/composer_v1/representations.rb,
lib/google/apis/composer_v1/representations.rb

Overview

Contains information about a single line from logs.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Line

Returns a new instance of Line.



987
988
989
# File 'lib/google/apis/composer_v1/classes.rb', line 987

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#contentString

Text content of the log line. Corresponds to the JSON property content

Returns:

  • (String)


980
981
982
# File 'lib/google/apis/composer_v1/classes.rb', line 980

def content
  @content
end

#line_numberFixnum

Number of the line. Corresponds to the JSON property lineNumber

Returns:

  • (Fixnum)


985
986
987
# File 'lib/google/apis/composer_v1/classes.rb', line 985

def line_number
  @line_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



992
993
994
995
# File 'lib/google/apis/composer_v1/classes.rb', line 992

def update!(**args)
  @content = args[:content] if args.key?(:content)
  @line_number = args[:line_number] if args.key?(:line_number)
end