Class: Google::Apis::DisplayvideoV4::PlannableProductCoreAttributes

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

Overview

Core attributes for a plannable product.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PlannableProductCoreAttributes

Returns a new instance of PlannableProductCoreAttributes.



12683
12684
12685
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 12683

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

Instance Attribute Details

#buying_methodString

Output only. The buying method. Corresponds to the JSON property buyingMethod

Returns:

  • (String)


12671
12672
12673
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 12671

def buying_method
  @buying_method
end

#cost_modelString

Output only. The cost model. Corresponds to the JSON property costModel

Returns:

  • (String)


12676
12677
12678
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 12676

def cost_model
  @cost_model
end

#product_categoryString

Output only. The product category. Corresponds to the JSON property productCategory

Returns:

  • (String)


12681
12682
12683
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 12681

def product_category
  @product_category
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12688
12689
12690
12691
12692
# File 'lib/google/apis/displayvideo_v4/classes.rb', line 12688

def update!(**args)
  @buying_method = args[:buying_method] if args.key?(:buying_method)
  @cost_model = args[:cost_model] if args.key?(:cost_model)
  @product_category = args[:product_category] if args.key?(:product_category)
end