Class: Google::Apis::ChromeuxreportV1::CollectionPeriod
- Inherits:
-
Object
- Object
- Google::Apis::ChromeuxreportV1::CollectionPeriod
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/chromeuxreport_v1/classes.rb,
lib/google/apis/chromeuxreport_v1/representations.rb,
lib/google/apis/chromeuxreport_v1/representations.rb
Overview
The collection period is a date range which includes the first
and last
day.
Instance Attribute Summary collapse
-
#first_date ⇒ Google::Apis::ChromeuxreportV1::Date
Represents a whole or partial calendar date, such as a birthday.
-
#last_date ⇒ Google::Apis::ChromeuxreportV1::Date
Represents a whole or partial calendar date, such as a birthday.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CollectionPeriod
constructor
A new instance of CollectionPeriod.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CollectionPeriod
Returns a new instance of CollectionPeriod.
92 93 94 |
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 92 def initialize(**args) update!(**args) end |
Instance Attribute Details
#first_date ⇒ Google::Apis::ChromeuxreportV1::Date
Represents a whole or partial calendar date, such as a birthday. The time of
day and time zone are either specified elsewhere or are insignificant. The
date is relative to the Gregorian Calendar. This can represent one of the
following: * A full date, with non-zero year, month, and day values. * A month
and day, with a zero year (for example, an anniversary). * A year on its own,
with a zero month and a zero day. * A year and month, with a zero day (for
example, a credit card expiration date). Related types: * google.type.
TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
Corresponds to the JSON property firstDate
78 79 80 |
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 78 def first_date @first_date end |
#last_date ⇒ Google::Apis::ChromeuxreportV1::Date
Represents a whole or partial calendar date, such as a birthday. The time of
day and time zone are either specified elsewhere or are insignificant. The
date is relative to the Gregorian Calendar. This can represent one of the
following: * A full date, with non-zero year, month, and day values. * A month
and day, with a zero year (for example, an anniversary). * A year on its own,
with a zero month and a zero day. * A year and month, with a zero day (for
example, a credit card expiration date). Related types: * google.type.
TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
Corresponds to the JSON property lastDate
90 91 92 |
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 90 def last_date @last_date end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
97 98 99 100 |
# File 'lib/google/apis/chromeuxreport_v1/classes.rb', line 97 def update!(**args) @first_date = args[:first_date] if args.key?(:first_date) @last_date = args[:last_date] if args.key?(:last_date) end |