Class: Google::Apis::YoutubePartnerV1::DateRange
- Inherits:
-
Object
- Object
- Google::Apis::YoutubePartnerV1::DateRange
- 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
-
#end ⇒ Google::Apis::YoutubePartnerV1::Date
The end date (inclusive) for the date range.
-
#kind ⇒ String
Identifies this resource as order date range.
-
#start ⇒ Google::Apis::YoutubePartnerV1::Date
The start date for the date range.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DateRange
constructor
A new instance of DateRange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DateRange
Returns a new instance of DateRange
1769 1770 1771 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1769 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end ⇒ Google::Apis::YoutubePartnerV1::Date
The end date (inclusive) for the date range. This value is required for video-
on-demand (VOD) orders and optional for electronic sell-through (EST) orders.
Corresponds to the JSON property end
1756 1757 1758 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1756 def end @end end |
#kind ⇒ String
Identifies this resource as order date range. Value: "youtubePartner#dateRange"
.
Corresponds to the JSON property kind
1762 1763 1764 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1762 def kind @kind end |
#start ⇒ Google::Apis::YoutubePartnerV1::Date
The start date for the date range. This value is required for all date ranges.
Corresponds to the JSON property start
1767 1768 1769 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1767 def start @start end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1774 1775 1776 1777 1778 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1774 def update!(**args) @end = args[:end] if args.key?(:end) @kind = args[:kind] if args.key?(:kind) @start = args[:start] if args.key?(:start) end |