Class: Google::Apis::FirebaserulesV1::SourcePosition
- Inherits:
-
Object
- Object
- Google::Apis::FirebaserulesV1::SourcePosition
- 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
-
#column ⇒ Fixnum
First column on the source line associated with the source fragment.
-
#file_name ⇒ String
Name of the
File
. -
#line ⇒ Fixnum
Line number of the source fragment.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SourcePosition
constructor
A new instance of SourcePosition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SourcePosition
Returns a new instance of SourcePosition
475 476 477 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 475 def initialize(**args) update!(**args) end |
Instance Attribute Details
#column ⇒ Fixnum
First column on the source line associated with the source fragment.
Corresponds to the JSON property column
463 464 465 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 463 def column @column end |
#file_name ⇒ String
Name of the File
.
Corresponds to the JSON property fileName
468 469 470 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 468 def file_name @file_name end |
#line ⇒ Fixnum
Line number of the source fragment. 1-based.
Corresponds to the JSON property line
473 474 475 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 473 def line @line end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
480 481 482 483 484 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 480 def update!(**args) @column = args[:column] if args.key?(:column) @file_name = args[:file_name] if args.key?(:file_name) @line = args[:line] if args.key?(:line) end |