Class: Google::Apis::YoutubeV3::Nonprofit

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

Overview

Nonprofit information.

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

Returns a new instance of Nonprofit.



5635
5636
5637
# File 'generated/google/apis/youtube_v3/classes.rb', line 5635

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

Instance Attribute Details

#nonprofit_idGoogle::Apis::YoutubeV3::NonprofitId

Id of the nonprofit. Corresponds to the JSON property nonprofitId



5628
5629
5630
# File 'generated/google/apis/youtube_v3/classes.rb', line 5628

def nonprofit_id
  @nonprofit_id
end

Legal name of the nonprofit. Corresponds to the JSON property nonprofitLegalName

Returns:

  • (String)


5633
5634
5635
# File 'generated/google/apis/youtube_v3/classes.rb', line 5633

def nonprofit_legal_name
  @nonprofit_legal_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5640
5641
5642
5643
# File 'generated/google/apis/youtube_v3/classes.rb', line 5640

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