Class: Google::Apis::FirebasedataconnectV1::SourceLocation

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/firebasedataconnect_v1/classes.rb,
lib/google/apis/firebasedataconnect_v1/representations.rb,
lib/google/apis/firebasedataconnect_v1/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.



1506
1507
1508
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 1506

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

Instance Attribute Details

#columnFixnum

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

Returns:

  • (Fixnum)


1499
1500
1501
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 1499

def column
  @column
end

#lineFixnum

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

Returns:

  • (Fixnum)


1504
1505
1506
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 1504

def line
  @line
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1511
1512
1513
1514
# File 'lib/google/apis/firebasedataconnect_v1/classes.rb', line 1511

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