Class: Google::Apis::DfareportingV4::OffsetPosition
- Inherits:
-
Object
- Object
- Google::Apis::DfareportingV4::OffsetPosition
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dfareporting_v4/classes.rb,
lib/google/apis/dfareporting_v4/representations.rb,
lib/google/apis/dfareporting_v4/representations.rb
Overview
Offset Position.
Instance Attribute Summary collapse
-
#left ⇒ Fixnum
Offset distance from left side of an asset or a window.
-
#top ⇒ Fixnum
Offset distance from top side of an asset or a window.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OffsetPosition
constructor
A new instance of OffsetPosition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OffsetPosition
Returns a new instance of OffsetPosition.
8148 8149 8150 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8148 def initialize(**args) update!(**args) end |
Instance Attribute Details
#left ⇒ Fixnum
Offset distance from left side of an asset or a window.
Corresponds to the JSON property left
8141 8142 8143 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8141 def left @left end |
#top ⇒ Fixnum
Offset distance from top side of an asset or a window.
Corresponds to the JSON property top
8146 8147 8148 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8146 def top @top end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8153 8154 8155 8156 |
# File 'lib/google/apis/dfareporting_v4/classes.rb', line 8153 def update!(**args) @left = args[:left] if args.key?(:left) @top = args[:top] if args.key?(:top) end |