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.
-
#current_offset ⇒ Fixnum
Start position relative to the beginning of the file.
-
#end_offset ⇒ Fixnum
End position relative to the beginning of the file.
-
#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.
Constructor Details
#initialize(**args) ⇒ SourcePosition
Returns a new instance of SourcePosition.
527 528 529 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 527 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
505 506 507 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 505 def column @column end |
#current_offset ⇒ Fixnum
Start position relative to the beginning of the file.
Corresponds to the JSON property currentOffset
510 511 512 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 510 def current_offset @current_offset end |
#end_offset ⇒ Fixnum
End position relative to the beginning of the file.
Corresponds to the JSON property endOffset
515 516 517 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 515 def end_offset @end_offset end |
#file_name ⇒ String
Name of the File
.
Corresponds to the JSON property fileName
520 521 522 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 520 def file_name @file_name end |
#line ⇒ Fixnum
Line number of the source fragment. 1-based.
Corresponds to the JSON property line
525 526 527 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 525 def line @line end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
532 533 534 535 536 537 538 |
# File 'generated/google/apis/firebaserules_v1/classes.rb', line 532 def update!(**args) @column = args[:column] if args.key?(:column) @current_offset = args[:current_offset] if args.key?(:current_offset) @end_offset = args[:end_offset] if args.key?(:end_offset) @file_name = args[:file_name] if args.key?(:file_name) @line = args[:line] if args.key?(:line) end |