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.
1698 1699 1700 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1698 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
1685 1686 1687 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1685 def end @end end |
#kind ⇒ String
Identifies this resource as order date range. Value: "youtubePartner#dateRange"
.
Corresponds to the JSON property kind
1691 1692 1693 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1691 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
1696 1697 1698 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1696 def start @start end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1703 1704 1705 1706 1707 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1703 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 |