Class: Google::Apis::CustomsearchV1::Promotion
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::CustomsearchV1::Promotion
 
- Defined in:
- generated/google/apis/customsearch_v1/classes.rb,
 generated/google/apis/customsearch_v1/representations.rb,
 generated/google/apis/customsearch_v1/representations.rb
Defined Under Namespace
Instance Attribute Summary collapse
- 
  
    
      #body_lines  ⇒ Array<Google::Apis::CustomsearchV1::Promotion::BodyLine> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property bodyLines.
- 
  
    
      #display_link  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property displayLink.
- 
  
    
      #html_title  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property htmlTitle.
- 
  
    
      #image  ⇒ Google::Apis::CustomsearchV1::Promotion::Image 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property image.
- 
  
    
      #link  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property link.
- 
  
    
      #title  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Corresponds to the JSON property title.
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Promotion 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Promotion. 
- 
  
    
      #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) ⇒ Promotion
Returns a new instance of Promotion
| 115 116 117 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 115 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#body_lines ⇒ Array<Google::Apis::CustomsearchV1::Promotion::BodyLine>
Corresponds to the JSON property bodyLines
| 88 89 90 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 88 def body_lines @body_lines end | 
#display_link ⇒ String
Corresponds to the JSON property displayLink
| 93 94 95 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 93 def display_link @display_link end | 
#html_title ⇒ String
Corresponds to the JSON property htmlTitle
| 98 99 100 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 98 def html_title @html_title end | 
#image ⇒ Google::Apis::CustomsearchV1::Promotion::Image
Corresponds to the JSON property image
| 103 104 105 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 103 def image @image end | 
#link ⇒ String
Corresponds to the JSON property link
| 108 109 110 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 108 def link @link end | 
#title ⇒ String
Corresponds to the JSON property title
| 113 114 115 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 113 def title @title end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 120 121 122 123 124 125 126 127 | # File 'generated/google/apis/customsearch_v1/classes.rb', line 120 def update!(**args) @body_lines = args[:body_lines] if args.key?(:body_lines) @display_link = args[:display_link] if args.key?(:display_link) @html_title = args[:html_title] if args.key?(:html_title) @image = args[:image] if args.key?(:image) @link = args[:link] if args.key?(:link) @title = args[:title] if args.key?(:title) end |