Class: Google::Apis::FirebaserulesV1::SourcePosition

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

Overview

Position in the Source content including its line, column number, and an index of the File in the Source message. Used for debug purposes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SourcePosition

Returns a new instance of SourcePosition



368
369
370
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 368

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

Instance Attribute Details

#columnFixnum

First column on the source line associated with the source fragment. Corresponds to the JSON property column

Returns:

  • (Fixnum)


361
362
363
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 361

def column
  @column
end

#file_nameString

Name of the File. Corresponds to the JSON property fileName

Returns:

  • (String)


366
367
368
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 366

def file_name
  @file_name
end

#lineFixnum

Line number of the source fragment. 1-based. Corresponds to the JSON property line

Returns:

  • (Fixnum)


356
357
358
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 356

def line
  @line
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



373
374
375
376
377
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 373

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