Class: Google::Apis::DfareportingV3_4::OffsetPosition

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

Overview

Offset Position.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OffsetPosition

Returns a new instance of OffsetPosition.



8019
8020
8021
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 8019

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)


8012
8013
8014
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 8012

def left
  @left
end

#topFixnum

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

Returns:

  • (Fixnum)


8017
8018
8019
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 8017

def top
  @top
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8024
8025
8026
8027
# File 'generated/google/apis/dfareporting_v3_4/classes.rb', line 8024

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