Class: Google::Apis::YoutubePartnerV1::Date

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

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

Returns a new instance of Date.


1665
1666
1667
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1665

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

Instance Attribute Details

#dayFixnum

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

Returns:

  • (Fixnum)

1653
1654
1655
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1653

def day
  @day
end

#monthFixnum

The date's month. The value should be an integer between 1 and 12. Corresponds to the JSON property month

Returns:

  • (Fixnum)

1658
1659
1660
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1658

def month
  @month
end

#yearFixnum

The date's year in the Gregorian Calendar. Assumed to be A.D. Corresponds to the JSON property year

Returns:

  • (Fixnum)

1663
1664
1665
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1663

def year
  @year
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1670
1671
1672
1673
1674
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1670

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