Class: Google::Apis::AdexchangebuyerV1_4::MarketplaceDealParty

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

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) ⇒ MarketplaceDealParty

Returns a new instance of MarketplaceDealParty.


2129
2130
2131
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2129

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

Instance Attribute Details

#buyerGoogle::Apis::AdexchangebuyerV1_4::Buyer

The buyer/seller associated with the deal. One of buyer/seller is specified for a deal-party. Corresponds to the JSON property buyer


2121
2122
2123
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2121

def buyer
  @buyer
end

#sellerGoogle::Apis::AdexchangebuyerV1_4::Seller

The buyer/seller associated with the deal. One of buyer/seller is specified for a deal party. Corresponds to the JSON property seller


2127
2128
2129
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2127

def seller
  @seller
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2134
2135
2136
2137
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2134

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