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.



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

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

Instance Attribute Details

#columnFixnum

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

Returns:

  • (Fixnum)


1050
1051
1052
# File 'lib/google/apis/firebasedataconnect_v1beta/classes.rb', line 1050

def column
  @column
end

#lineFixnum

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

Returns:

  • (Fixnum)


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

def line
  @line
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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