Class: Google::Apis::DatamigrationV1::Position

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

Overview

Issue position.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Position

Returns a new instance of Position.



3506
3507
3508
# File 'lib/google/apis/datamigration_v1/classes.rb', line 3506

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

Instance Attribute Details

#columnFixnum

Issue column number Corresponds to the JSON property column

Returns:

  • (Fixnum)


3489
3490
3491
# File 'lib/google/apis/datamigration_v1/classes.rb', line 3489

def column
  @column
end

#lengthFixnum

Issue length Corresponds to the JSON property length

Returns:

  • (Fixnum)


3494
3495
3496
# File 'lib/google/apis/datamigration_v1/classes.rb', line 3494

def length
  @length
end

#lineFixnum

Issue line number Corresponds to the JSON property line

Returns:

  • (Fixnum)


3499
3500
3501
# File 'lib/google/apis/datamigration_v1/classes.rb', line 3499

def line
  @line
end

#offsetFixnum

Issue offset Corresponds to the JSON property offset

Returns:

  • (Fixnum)


3504
3505
3506
# File 'lib/google/apis/datamigration_v1/classes.rb', line 3504

def offset
  @offset
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3511
3512
3513
3514
3515
3516
# File 'lib/google/apis/datamigration_v1/classes.rb', line 3511

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