Class: Google::Apis::YoutubePartnerV1::DateRange

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

#endGoogle::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

#kindString

Identifies this resource as order date range. Value: "youtubePartner#dateRange" . Corresponds to the JSON property kind

Returns:

  • (String)


1691
1692
1693
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1691

def kind
  @kind
end

#startGoogle::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