Class: Google::Apis::DfareportingV2_6::OffsetPosition

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

Overview

Offset Position.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OffsetPosition

Returns a new instance of OffsetPosition



7208
7209
7210
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 7208

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)


7201
7202
7203
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 7201

def left
  @left
end

#topFixnum

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

Returns:

  • (Fixnum)


7206
7207
7208
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 7206

def top
  @top
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7213
7214
7215
7216
# File 'generated/google/apis/dfareporting_v2_6/classes.rb', line 7213

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