class Google::Apis::YoutubePartnerV1::Date
Attributes
day[RW]
The date's day. The value should be an integer between 1 and 31. Note that some day-month combinations are not valid. Corresponds to the JSON property `day` @return [Fixnum]
month[RW]
The date's month. The value should be an integer between 1 and 12. Corresponds to the JSON property `month` @return [Fixnum]
year[RW]
The date's year in the Gregorian Calendar. Assumed to be A.D. Corresponds to the JSON property `year` @return [Fixnum]
Public Class Methods
new(**args)
click to toggle source
# File generated/google/apis/youtube_partner_v1/classes.rb, line 1659 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File generated/google/apis/youtube_partner_v1/classes.rb, line 1664 def update!(**args) @day = args[:day] if args.key?(:day) @month = args[:month] if args.key?(:month) @year = args[:year] if args.key?(:year) end