Class: Google::Apis::ContentV2::Value
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Apis::ContentV2::Value
 
 
- Defined in:
 - generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/representations.rb 
Overview
The single value of a rate group or the value of a rate group table's cell. Exactly one of noShipping, flatRate, pricePercentage, carrierRateName, subtableName must be set.
Instance Attribute Summary collapse
- 
  
    
      #carrier_rate_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The name of a carrier rate referring to a carrier rate defined in the same rate group.
 - 
  
    
      #flat_rate  ⇒ Google::Apis::ContentV2::Price 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A flat rate.
 - 
  
    
      #no_shipping  ⇒ Boolean 
    
    
      (also: #no_shipping?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    
If true, then the product can't ship.
 - 
  
    
      #price_percentage  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
A percentage of the price represented as a number in decimal notation (e.g., " 5.4").
 - 
  
    
      #subtable_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The name of a subtable.
 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Value 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Value.
 - 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
Update properties of this object.
 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Value
Returns a new instance of Value
      10494 10495 10496  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 10494 def initialize(**args) update!(**args) end  | 
  
Instance Attribute Details
#carrier_rate_name ⇒ String
The name of a carrier rate referring to a carrier rate defined in the same
rate group. Can only be set if all other fields are not set.
Corresponds to the JSON property carrierRateName
      10468 10469 10470  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 10468 def carrier_rate_name @carrier_rate_name end  | 
  
#flat_rate ⇒ Google::Apis::ContentV2::Price
A flat rate. Can only be set if all other fields are not set.
Corresponds to the JSON property flatRate
      10473 10474 10475  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 10473 def flat_rate @flat_rate end  | 
  
#no_shipping ⇒ Boolean Also known as: no_shipping?
If true, then the product can't ship. Must be true when set, can only be set
if all other fields are not set.
Corresponds to the JSON property noShipping
      10479 10480 10481  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 10479 def no_shipping @no_shipping end  | 
  
#price_percentage ⇒ String
A percentage of the price represented as a number in decimal notation (e.g., "
5.4"). Can only be set if all other fields are not set.
Corresponds to the JSON property pricePercentage
      10486 10487 10488  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 10486 def price_percentage @price_percentage end  | 
  
#subtable_name ⇒ String
The name of a subtable. Can only be set in table cells (i.e., not for single
values), and only if all other fields are not set.
Corresponds to the JSON property subtableName
      10492 10493 10494  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 10492 def subtable_name @subtable_name end  | 
  
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
      10499 10500 10501 10502 10503 10504 10505  | 
    
      # File 'generated/google/apis/content_v2/classes.rb', line 10499 def update!(**args) @carrier_rate_name = args[:carrier_rate_name] if args.key?(:carrier_rate_name) @flat_rate = args[:flat_rate] if args.key?(:flat_rate) @no_shipping = args[:no_shipping] if args.key?(:no_shipping) @price_percentage = args[:price_percentage] if args.key?(:price_percentage) @subtable_name = args[:subtable_name] if args.key?(:subtable_name) end  |