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



1769
1770
1771
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1769

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



1756
1757
1758
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1756

def end
  @end
end

#kindString

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

Returns:

  • (String)


1762
1763
1764
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1762

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



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