Class: Google::Apis::FirebasedataconnectV1beta::SourceLocation

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

Overview

SourceLocation references a location in a GraphQL source.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SourceLocation

Returns a new instance of SourceLocation.



1063
1064
1065
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 1063

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

Instance Attribute Details

#columnFixnum

Column number starting at 1. Corresponds to the JSON property column

Returns:

  • (Fixnum)


1056
1057
1058
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 1056

def column
  @column
end

#lineFixnum

Line number starting at 1. Corresponds to the JSON property line

Returns:

  • (Fixnum)


1061
1062
1063
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 1061

def line
  @line
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1068
1069
1070
1071
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 1068

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