lib/google/cloud/debugger/breakpoint/source_location.rb in google-cloud-debugger-0.36.3 vs lib/google/cloud/debugger/breakpoint/source_location.rb in google-cloud-debugger-0.40.0
- old
+ new
@@ -39,11 +39,11 @@
# @private Create an empty SourceLocation object.
def initialize; end
##
# @private New Google::Cloud::Debugger::Breakpoint::SourceLocation
- # from a Google::Devtools::Clouddebugger::V2::SourceLocation object.
+ # from a Google::Cloud::Debugger::V2::SourceLocation object.
def self.from_grpc grpc
return new if grpc.nil?
new.tap do |o|
o.path = grpc.path
o.line = grpc.line
@@ -57,13 +57,13 @@
line.nil?
end
##
# @private Exports the SourceLocation to a
- # Google::Devtools::Clouddebugger::V2::SourceLocation object.
+ # Google::Cloud::Debugger::V2::SourceLocation object.
def to_grpc
return nil if empty?
- Google::Devtools::Clouddebugger::V2::SourceLocation.new(
+ Google::Cloud::Debugger::V2::SourceLocation.new(
path: path.to_s,
line: line
)
end
end