Class: Google::Apis::YoutubePartnerV1::Date
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::YoutubePartnerV1::Date
 
- 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
- 
  
    
      #day  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The date's day. 
- 
  
    
      #month  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The date's month. 
- 
  
    
      #year  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The date's year in the Gregorian Calendar. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Date 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Date. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Date
Returns a new instance of Date
| 1736 1737 1738 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1736 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#day ⇒ Fixnum
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
| 1724 1725 1726 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1724 def day @day end | 
#month ⇒ Fixnum
The date's month. The value should be an integer between 1 and 12.
Corresponds to the JSON property month
| 1729 1730 1731 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1729 def month @month end | 
#year ⇒ Fixnum
The date's year in the Gregorian Calendar. Assumed to be A.D.
Corresponds to the JSON property year
| 1734 1735 1736 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1734 def year @year end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1741 1742 1743 1744 1745 | # File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1741 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 |