Class: Google::Apis::DfareportingV3_3::OffsetPosition

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

Overview

Offset Position.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OffsetPosition

Returns a new instance of OffsetPosition.



7332
7333
7334
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 7332

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

Instance Attribute Details

#leftFixnum

Offset distance from left side of an asset or a window. Corresponds to the JSON property left

Returns:

  • (Fixnum)


7325
7326
7327
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 7325

def left
  @left
end

#topFixnum

Offset distance from top side of an asset or a window. Corresponds to the JSON property top

Returns:

  • (Fixnum)


7330
7331
7332
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 7330

def top
  @top
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7337
7338
7339
7340
# File 'generated/google/apis/dfareporting_v3_3/classes.rb', line 7337

def update!(**args)
  @left = args[:left] if args.key?(:left)
  @top = args[:top] if args.key?(:top)
end