Class: Google::Apis::AdsensehostV4_1::AdCode

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AdCode

Returns a new instance of AdCode.



191
192
193
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 191

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

Instance Attribute Details

#ad_codeString

The ad code snippet. Corresponds to the JSON property adCode

Returns:

  • (String)


184
185
186
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 184

def ad_code
  @ad_code
end

#kindString

Kind this is, in this case adsensehost#adCode. Corresponds to the JSON property kind

Returns:

  • (String)


189
190
191
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 189

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



196
197
198
199
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 196

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