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.



4115
4116
4117
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4115

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

Instance Attribute Details

#columnFixnum

Issue column number Corresponds to the JSON property column

Returns:

  • (Fixnum)


4098
4099
4100
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4098

def column
  @column
end

#lengthFixnum

Issue length Corresponds to the JSON property length

Returns:

  • (Fixnum)


4103
4104
4105
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4103

def length
  @length
end

#lineFixnum

Issue line number Corresponds to the JSON property line

Returns:

  • (Fixnum)


4108
4109
4110
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4108

def line
  @line
end

#offsetFixnum

Issue offset Corresponds to the JSON property offset

Returns:

  • (Fixnum)


4113
4114
4115
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4113

def offset
  @offset
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4120
4121
4122
4123
4124
4125
# File 'lib/google/apis/datamigration_v1/classes.rb', line 4120

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